Home
last modified time | relevance | path

Searched refs:replay_esn (Results 1 – 3 of 3) sorted by relevance

/net/xfrm/
Dxfrm_replay.c15 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_seqhi() local
21 seq_hi = replay_esn->seq_hi; in xfrm_replay_seqhi()
22 bottom = replay_esn->seq - replay_esn->replay_window + 1; in xfrm_replay_seqhi()
24 if (likely(replay_esn->seq >= replay_esn->replay_window - 1)) { in xfrm_replay_seqhi()
165 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_overflow_bmp() local
169 XFRM_SKB_CB(skb)->seq.output.low = ++replay_esn->oseq; in xfrm_replay_overflow_bmp()
171 if (unlikely(replay_esn->oseq == 0)) { in xfrm_replay_overflow_bmp()
172 replay_esn->oseq--; in xfrm_replay_overflow_bmp()
189 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_check_bmp() local
192 u32 diff = replay_esn->seq - seq; in xfrm_replay_check_bmp()
[all …]
Dxfrm_user.c425 static inline int xfrm_replay_verify_len(struct xfrm_replay_state_esn *replay_esn, in xfrm_replay_verify_len() argument
431 if (!replay_esn || !rp) in xfrm_replay_verify_len()
440 xfrm_replay_state_esn_len(replay_esn) != ulen || in xfrm_replay_verify_len()
441 replay_esn->bmp_len != up->bmp_len) in xfrm_replay_verify_len()
450 static int xfrm_alloc_replay_state_esn(struct xfrm_replay_state_esn **replay_esn, in xfrm_alloc_replay_state_esn() argument
477 *replay_esn = p; in xfrm_alloc_replay_state_esn()
525 if (re && x->replay_esn && x->preplay_esn) { in xfrm_update_ae_params()
526 struct xfrm_replay_state_esn *replay_esn; in xfrm_update_ae_params() local
527 replay_esn = nla_data(re); in xfrm_update_ae_params()
528 memcpy(x->replay_esn, replay_esn, in xfrm_update_ae_params()
[all …]
Dxfrm_state.c490 kfree(x->replay_esn); in ___xfrm_state_destroy()
1535 if (orig->replay_esn) { in xfrm_state_clone()