Home
last modified time | relevance | path

Searched refs:ip_esp_hdr (Results 1 – 20 of 20) sorted by relevance

/Linux-v6.1/include/net/
Desp.h7 struct ip_esp_hdr;
10 static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb) in ip_esp_hdr() function
12 return (struct ip_esp_hdr *)skb_transport_header(skb); in ip_esp_hdr()
32 struct ip_esp_hdr *esph;
/Linux-v6.1/net/ipv4/
Desp4.c288 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header()
305 static struct ip_esp_hdr *esp_output_set_extra(struct sk_buff *skb, in esp_output_set_extra()
307 struct ip_esp_hdr *esph, in esp_output_set_extra()
325 esph = (struct ip_esp_hdr *)((unsigned char *)esph - 4); in esp_output_set_extra()
343 static struct ip_esp_hdr *esp_output_udp_encap(struct sk_buff *skb, in esp_output_udp_encap()
368 return (struct ip_esp_hdr *)(udpdata32 + 2); in esp_output_udp_encap()
371 return (struct ip_esp_hdr *)(uh + 1); in esp_output_udp_encap()
375 static struct ip_esp_hdr *esp_output_tcp_encap(struct xfrm_state *x, in esp_output_tcp_encap()
380 struct ip_esp_hdr *esph; in esp_output_tcp_encap()
396 esph = (struct ip_esp_hdr *)(lenp + 1); in esp_output_tcp_encap()
[all …]
Desp4_offload.c94 struct ip_esp_hdr *esph; in esp4_gso_encap()
100 esph = ip_esp_hdr(skb); in esp4_gso_encap()
196 struct ip_esp_hdr *esph; in esp4_gso_segment()
211 esph = ip_esp_hdr(skb); in esp4_gso_segment()
242 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp_input_tail()
257 struct ip_esp_hdr *esph; in esp_xmit()
292 esp.esph = ip_esp_hdr(skb); in esp_xmit()
Dxfrm4_input.c114 } else if (len > sizeof(struct ip_esp_hdr) && udpdata32[0] != 0) { in xfrm4_udp_encap_rcv()
125 } else if (len > 2 * sizeof(u32) + sizeof(struct ip_esp_hdr) && in xfrm4_udp_encap_rcv()
Dip_vti.c318 struct ip_esp_hdr *esph; in vti4_err()
335 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err()
/Linux-v6.1/net/ipv6/
Desp6.c324 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header()
341 static struct ip_esp_hdr *esp_output_set_esn(struct sk_buff *skb, in esp_output_set_esn()
343 struct ip_esp_hdr *esph, in esp_output_set_esn()
361 esph = (struct ip_esp_hdr *)((unsigned char *)esph - 4); in esp_output_set_esn()
379 static struct ip_esp_hdr *esp6_output_udp_encap(struct sk_buff *skb, in esp6_output_udp_encap()
404 return (struct ip_esp_hdr *)(udpdata32 + 2); in esp6_output_udp_encap()
407 return (struct ip_esp_hdr *)(uh + 1); in esp6_output_udp_encap()
411 static struct ip_esp_hdr *esp6_output_tcp_encap(struct xfrm_state *x, in esp6_output_tcp_encap()
416 struct ip_esp_hdr *esph; in esp6_output_tcp_encap()
432 esph = (struct ip_esp_hdr *)(lenp + 1); in esp6_output_tcp_encap()
[all …]
Desp6_offload.c122 struct ip_esp_hdr *esph; in esp6_gso_encap()
135 esph = ip_esp_hdr(skb); in esp6_gso_encap()
235 struct ip_esp_hdr *esph; in esp6_gso_segment()
250 esph = ip_esp_hdr(skb); in esp6_gso_segment()
279 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp6_input_tail()
335 esp.esph = ip_esp_hdr(skb); in esp6_xmit()
Dxfrm6_input.c110 } else if (len > sizeof(struct ip_esp_hdr) && udpdata32[0] != 0) { in xfrm6_udp_encap_rcv()
121 } else if (len > 2 * sizeof(u32) + sizeof(struct ip_esp_hdr) && in xfrm6_udp_encap_rcv()
Dip6_vti.c607 struct ip_esp_hdr *esph; in vti6_err()
622 esph = (struct ip_esp_hdr *)(skb->data + offset); in vti6_err()
/Linux-v6.1/net/netfilter/
Dxt_esp.c38 const struct ip_esp_hdr *eh; in esp_mt()
39 struct ip_esp_hdr _esp; in esp_mt()
Dnf_log_syslog.c481 const struct ip_esp_hdr *eh; in dump_ipv4_packet()
482 struct ip_esp_hdr _esph; in dump_ipv4_packet()
653 struct ip_esp_hdr _esph; in dump_ipv6_packet()
654 const struct ip_esp_hdr *eh; in dump_ipv6_packet()
/Linux-v6.1/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c412 struct ip_esp_hdr *esphdr; in copy_esn_pktxt()
437 esphdr = (struct ip_esp_hdr *)skb_transport_header(skb); in copy_esn_pktxt()
438 iv = skb_transport_header(skb) + sizeof(struct ip_esp_hdr); in copy_esn_pktxt()
445 iv = skb_transport_header(skb) + sizeof(struct ip_esp_hdr); in copy_esn_pktxt()
624 sizeof(struct ip_esp_hdr) + 1); in ch_ipsec_crypto_wreq()
636 sizeof(struct ip_esp_hdr)); in ch_ipsec_crypto_wreq()
637 ciphstart = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr) + in ch_ipsec_crypto_wreq()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c168 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv_esn()
180 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv()
/Linux-v6.1/include/uapi/linux/
Dip.h120 struct ip_esp_hdr { struct
/Linux-v6.1/net/xfrm/
Dxfrm_input.c153 hlen = sizeof(struct ip_esp_hdr); in xfrm_parse_spi()
154 offset = offsetof(struct ip_esp_hdr, spi); in xfrm_parse_spi()
155 offset_seq = offsetof(struct ip_esp_hdr, seq_no); in xfrm_parse_spi()
Dxfrm_interface.c540 struct ip_esp_hdr *esph; in xfrmi4_err()
548 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in xfrmi4_err()
601 struct ip_esp_hdr *esph; in xfrmi6_err()
609 esph = (struct ip_esp_hdr *)(skb->data + offset); in xfrmi6_err()
/Linux-v6.1/drivers/net/ethernet/intel/iavf/
Diavf_fdir.c443 struct ip_esp_hdr *esph = (struct ip_esp_hdr *)hdr->buffer; in iavf_fill_fdir_esp_hdr()
/Linux-v6.1/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c591 spi = ((struct ip_esp_hdr *)c_hdr)->spi; in ixgbevf_ipsec_rx()
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_virtchnl_fdir.c748 struct ip_esp_hdr *esph; in ice_vc_fdir_parse_pattern()
859 esph = (struct ip_esp_hdr *)hdr->buffer; in ice_vc_fdir_parse_pattern()
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c1198 spi = ((struct ip_esp_hdr *)c_hdr)->spi; in ixgbe_ipsec_rx()