Lines Matching refs:replay_esn

517 static inline int xfrm_replay_verify_len(struct xfrm_replay_state_esn *replay_esn,  in xfrm_replay_verify_len()  argument
524 if (!replay_esn || !rp) in xfrm_replay_verify_len()
537 if (xfrm_replay_state_esn_len(replay_esn) != ulen) { in xfrm_replay_verify_len()
542 if (replay_esn->bmp_len != up->bmp_len) { in xfrm_replay_verify_len()
555 static int xfrm_alloc_replay_state_esn(struct xfrm_replay_state_esn **replay_esn, in xfrm_alloc_replay_state_esn() argument
582 *replay_esn = p; in xfrm_alloc_replay_state_esn()
631 if (re && x->replay_esn && x->preplay_esn) { in xfrm_update_ae_params()
632 struct xfrm_replay_state_esn *replay_esn; in xfrm_update_ae_params() local
633 replay_esn = nla_data(re); in xfrm_update_ae_params()
634 memcpy(x->replay_esn, replay_esn, in xfrm_update_ae_params()
635 xfrm_replay_state_esn_len(replay_esn)); in xfrm_update_ae_params()
636 memcpy(x->preplay_esn, replay_esn, in xfrm_update_ae_params()
637 xfrm_replay_state_esn_len(replay_esn)); in xfrm_update_ae_params()
748 if ((err = xfrm_alloc_replay_state_esn(&x->replay_esn, &x->preplay_esn, in xfrm_state_construct()
1162 if (x->replay_esn) in copy_to_user_state_extra()
1164 xfrm_replay_state_esn_len(x->replay_esn), in copy_to_user_state_extra()
1165 x->replay_esn); in copy_to_user_state_extra()
2393 unsigned int replay_size = x->replay_esn ? in xfrm_aevent_msgsize()
2394 xfrm_replay_state_esn_len(x->replay_esn) : in xfrm_aevent_msgsize()
2425 if (x->replay_esn) { in build_aevent()
2427 xfrm_replay_state_esn_len(x->replay_esn), in build_aevent()
2428 x->replay_esn); in build_aevent()
2549 err = xfrm_replay_verify_len(x->replay_esn, re, extack); in xfrm_new_ae()
3298 if (x->replay_esn) in xfrm_sa_len()
3299 l += nla_total_size(xfrm_replay_state_esn_len(x->replay_esn)); in xfrm_sa_len()