Home
last modified time | relevance | path

Searched refs:replay_window (Results 1 – 16 of 16) sorted by relevance

/Linux-v6.6/net/xfrm/
Dxfrm_replay.c22 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()
127 if (!x->props.replay_window) in xfrm_replay_check_legacy()
137 if (diff >= x->props.replay_window) { in xfrm_replay_check_legacy()
138 x->stats.replay_window++; in xfrm_replay_check_legacy()
169 if (!x->props.replay_window) in xfrm_replay_advance()
175 if (diff < x->props.replay_window) in xfrm_replay_advance()
222 if (!replay_esn->replay_window) in xfrm_replay_check_bmp()
231 if (diff >= replay_esn->replay_window) { in xfrm_replay_check_bmp()
232 x->stats.replay_window++; in xfrm_replay_check_bmp()
[all …]
Dxfrm_user.c166 if (p->replay_window != 0) { in verify_replay()
547 if (up->replay_window > up->bmp_len * sizeof(__u32) * 8) { in xfrm_replay_verify_len()
605 x->props.replay_window = min_t(unsigned int, p->replay_window, in copy_from_user_state()
907 put_unaligned(x->stats.replay_window, &p->stats.replay_window); in copy_to_user_state()
912 p->replay_window = x->props.replay_window; in copy_to_user_state()
Dxfrm_compat.c41 u8 mode, replay_window, flags; member
Dxfrm_state.c1668 x->props.replay_window = orig->props.replay_window; in xfrm_state_clone()
/Linux-v6.6/include/uapi/linux/
Dxfrm.h98 __u32 replay_window; member
123 __u32 replay_window; member
383 __u8 replay_window; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c118 if (esn >= x->replay_esn->replay_window) in mlx5e_ipsec_update_esn_state()
119 seq_bottom = esn - x->replay_esn->replay_window + 1; in mlx5e_ipsec_update_esn_state()
476 if (x->replay_esn && x->replay_esn->replay_window != 32 && in mlx5e_xfrm_validate_state()
477 x->replay_esn->replay_window != 64 && in mlx5e_xfrm_validate_state()
478 x->replay_esn->replay_window != 128 && in mlx5e_xfrm_validate_state()
479 x->replay_esn->replay_window != 256) { in mlx5e_xfrm_validate_state()
Dipsec.h71 u32 replay_window; member
Dmacsec.c141 u32 replay_window; member
216 switch (attrs->replay_window) { in macsec_set_replay_protection()
353 obj_attrs.replay_window = ctx->secy->replay_window; in mlx5e_macsec_init_sa()
Dipsec_offload.c97 attrs->replay_esn.replay_window / 64); in mlx5e_ipsec_packet_setup()
/Linux-v6.6/include/net/
Dmacsec.h243 u32 replay_window; member
Dxfrm.h201 u8 replay_window; member
/Linux-v6.6/drivers/net/
Dmacsec.c728 if (rx_sa->next_pn_halves.lower >= secy->replay_window) in macsec_post_decrypt()
729 lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window; in macsec_post_decrypt()
1211 late = rx_sa->next_pn_halves.lower >= secy->replay_window && in macsec_handle_frame()
1212 hdr_pn < (rx_sa->next_pn_halves.lower - secy->replay_window); in macsec_handle_frame()
3019 if (nla_put_u32(skb, MACSEC_SECY_ATTR_WINDOW, secy->replay_window)) in nla_put_secy()
3797 secy->replay_window = nla_get_u32(data[IFLA_MACSEC_WINDOW]); in macsec_changelink_common()
3802 secy->replay_window > MACSEC_XPN_MAX_REPLAY_WINDOW) in macsec_changelink_common()
4304 if (nla_put_u32(skb, IFLA_MACSEC_WINDOW, secy->replay_window)) in macsec_fill_info()
/Linux-v6.6/drivers/net/phy/mscc/
Dmscc_macsec.c583 priv->secy->replay_window); in vsc8584_macsec_transformation()
/Linux-v6.6/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c733 sc_record.anti_replay_window = secy->replay_window; in aq_set_rxsc()
/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c276 policy = FIELD_PREP(MCS_RX_SECY_PLCY_RW_MASK, secy->replay_window); in cn10k_mcs_write_rx_secy()
/Linux-v6.6/net/key/
Daf_key.c839 sa->sadb_sa_replay = x->props.replay_window; in __pfkey_xfrm_state2msg()
1128 x->props.replay_window = min_t(unsigned int, sa->sadb_sa_replay, in pfkey_msg2xfrm_state()