Home
last modified time | relevance | path

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

/Linux-v4.19/include/net/
Desp.h7 struct ip_esp_hdr;
9 static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb) in ip_esp_hdr() function
11 return (struct ip_esp_hdr *)skb_transport_header(skb); in ip_esp_hdr()
15 struct ip_esp_hdr *esph;
/Linux-v4.19/net/ipv4/
Desp4_offload.c94 struct ip_esp_hdr *esph; in esp4_gso_encap()
100 esph = ip_esp_hdr(skb); in esp4_gso_encap()
113 struct ip_esp_hdr *esph; in esp4_gso_segment()
126 esph = ip_esp_hdr(skb); in esp4_gso_segment()
153 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp_input_tail()
168 struct ip_esp_hdr *esph; in esp_xmit()
201 esp.esph = ip_esp_hdr(skb); in esp_xmit()
Desp4.c155 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header()
172 static struct ip_esp_hdr *esp_output_set_extra(struct sk_buff *skb, in esp_output_set_extra()
174 struct ip_esp_hdr *esph, in esp_output_set_extra()
192 esph = (struct ip_esp_hdr *)((unsigned char *)esph - 4); in esp_output_set_extra()
233 struct ip_esp_hdr *esph = esp->esph; in esp_output_udp_encap()
251 esph = (struct ip_esp_hdr *)(uh + 1); in esp_output_udp_encap()
256 esph = (struct ip_esp_hdr *)(udpdata32 + 2); in esp_output_udp_encap()
342 esp->esph = (struct ip_esp_hdr *)(skb_transport_header(skb) + esph_offset); in esp_output_head()
362 struct ip_esp_hdr *esph; in esp_output_tail()
369 assoclen = sizeof(struct ip_esp_hdr); in esp_output_tail()
[all …]
Dxfrm4_input.c119 } else if (len > sizeof(struct ip_esp_hdr) && udpdata32[0] != 0) { in xfrm4_udp_encap_rcv()
130 } else if (len > 2 * sizeof(u32) + sizeof(struct ip_esp_hdr) && in xfrm4_udp_encap_rcv()
Dip_vti.c273 struct ip_esp_hdr *esph; in vti4_err()
290 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err()
/Linux-v4.19/net/ipv6/
Desp6_offload.c121 struct ip_esp_hdr *esph; in esp6_gso_encap()
127 esph = ip_esp_hdr(skb); in esp6_gso_encap()
140 struct ip_esp_hdr *esph; in esp6_gso_segment()
153 esph = ip_esp_hdr(skb); in esp6_gso_segment()
180 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp6_input_tail()
196 struct ip_esp_hdr *esph; in esp6_xmit()
237 esph = ip_esp_hdr(skb); in esp6_xmit()
Desp6.c175 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header()
188 static struct ip_esp_hdr *esp_output_set_esn(struct sk_buff *skb, in esp_output_set_esn()
190 struct ip_esp_hdr *esph, in esp_output_set_esn()
328 struct ip_esp_hdr *esph; in esp6_output_tail()
334 assoclen = sizeof(struct ip_esp_hdr); in esp6_output_tail()
360 esph = esp_output_set_esn(skb, x, ip_esp_hdr(skb), seqhi); in esp6_output_tail()
440 struct ip_esp_hdr *esph; in esp6_output()
472 esph = ip_esp_hdr(skb); in esp6_output()
496 hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); in esp_remove_trailer()
534 int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); in esp6_input_done2()
[all …]
Dip6_vti.c572 struct ip_esp_hdr *esph; in vti6_err()
587 esph = (struct ip_esp_hdr *)(skb->data + offset); in vti6_err()
/Linux-v4.19/net/netfilter/
Dxt_esp.c41 const struct ip_esp_hdr *eh; in esp_mt()
42 struct ip_esp_hdr _esp; in esp_mt()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c198 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv_esn()
210 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv()
218 struct ip_esp_hdr *esph; in mlx5e_ipsec_set_metadata()
223 esph = ip_esp_hdr(skb); in mlx5e_ipsec_set_metadata()
/Linux-v4.19/drivers/crypto/chelsio/
Dchcr_ipsec.c490 sizeof(struct ip_esp_hdr) + 1))); in chcr_crypto_wreq()
497 sizeof(struct ip_esp_hdr)), in chcr_crypto_wreq()
499 sizeof(struct ip_esp_hdr) + in chcr_crypto_wreq()
504 sizeof(struct ip_esp_hdr) + in chcr_crypto_wreq()
/Linux-v4.19/net/ipv6/netfilter/
Dnf_log_ipv6.c165 struct ip_esp_hdr _esph; in dump_ipv6_packet()
166 const struct ip_esp_hdr *eh; in dump_ipv6_packet()
/Linux-v4.19/net/ipv4/netfilter/
Dnf_log_ipv4.c225 struct ip_esp_hdr _esph; in dump_ipv4_packet()
226 const struct ip_esp_hdr *eh; in dump_ipv4_packet()
/Linux-v4.19/net/xfrm/
Dxfrm_input.c180 hlen = sizeof(struct ip_esp_hdr); in xfrm_parse_spi()
181 offset = offsetof(struct ip_esp_hdr, spi); in xfrm_parse_spi()
182 offset_seq = offsetof(struct ip_esp_hdr, seq_no); in xfrm_parse_spi()
Dxfrm_interface.c430 struct ip_esp_hdr *esph; in xfrmi4_err()
438 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in xfrmi4_err()
490 struct ip_esp_hdr *esph; in xfrmi6_err()
498 esph = (struct ip_esp_hdr *)(skb->data + offset); in xfrmi6_err()
/Linux-v4.19/include/uapi/linux/
Dip.h118 struct ip_esp_hdr { struct
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c948 spi = ((struct ip_esp_hdr *)c_hdr)->spi; in ixgbe_ipsec_rx()