Home
last modified time | relevance | path

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

/Linux-v5.4/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-v5.4/net/ipv4/
Desp4.c157 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header()
174 static struct ip_esp_hdr *esp_output_set_extra(struct sk_buff *skb, in esp_output_set_extra()
176 struct ip_esp_hdr *esph, in esp_output_set_extra()
194 esph = (struct ip_esp_hdr *)((unsigned char *)esph - 4); in esp_output_set_extra()
235 struct ip_esp_hdr *esph = esp->esph; in esp_output_udp_encap()
257 esph = (struct ip_esp_hdr *)(uh + 1); in esp_output_udp_encap()
262 esph = (struct ip_esp_hdr *)(udpdata32 + 2); in esp_output_udp_encap()
354 esp->esph = (struct ip_esp_hdr *)(skb_transport_header(skb) + esph_offset); in esp_output_head()
374 struct ip_esp_hdr *esph; in esp_output_tail()
381 assoclen = sizeof(struct ip_esp_hdr); in esp_output_tail()
[all …]
Desp4_offload.c94 struct ip_esp_hdr *esph; in esp4_gso_encap()
100 esph = ip_esp_hdr(skb); in esp4_gso_encap()
151 struct ip_esp_hdr *esph; in esp4_gso_segment()
166 esph = ip_esp_hdr(skb); in esp4_gso_segment()
195 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp_input_tail()
210 struct ip_esp_hdr *esph; in esp_xmit()
245 esp.esph = ip_esp_hdr(skb); in esp_xmit()
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.c293 struct ip_esp_hdr *esph; in vti4_err()
310 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err()
/Linux-v5.4/net/ipv6/
Desp6.c164 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header()
177 static struct ip_esp_hdr *esp_output_set_esn(struct sk_buff *skb, in esp_output_set_esn()
179 struct ip_esp_hdr *esph, in esp_output_set_esn()
317 struct ip_esp_hdr *esph; in esp6_output_tail()
323 assoclen = sizeof(struct ip_esp_hdr); in esp6_output_tail()
349 esph = esp_output_set_esn(skb, x, ip_esp_hdr(skb), seqhi); in esp6_output_tail()
429 struct ip_esp_hdr *esph; in esp6_output()
461 esph = ip_esp_hdr(skb); in esp6_output()
485 hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); in esp_remove_trailer()
523 int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); in esp6_input_done2()
[all …]
Desp6_offload.c121 struct ip_esp_hdr *esph; in esp6_gso_encap()
127 esph = ip_esp_hdr(skb); in esp6_gso_encap()
178 struct ip_esp_hdr *esph; in esp6_gso_segment()
193 esph = ip_esp_hdr(skb); in esp6_gso_segment()
220 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp6_input_tail()
236 struct ip_esp_hdr *esph; in esp6_xmit()
277 esph = ip_esp_hdr(skb); in esp6_xmit()
Dip6_vti.c569 struct ip_esp_hdr *esph; in vti6_err()
584 esph = (struct ip_esp_hdr *)(skb->data + offset); in vti6_err()
/Linux-v5.4/net/netfilter/
Dxt_esp.c38 const struct ip_esp_hdr *eh; in esp_mt()
39 struct ip_esp_hdr _esp; in esp_mt()
/Linux-v5.4/drivers/crypto/chelsio/
Dchcr_ipsec.c381 struct ip_esp_hdr *esphdr; in copy_esn_pktxt()
406 esphdr = (struct ip_esp_hdr *)skb_transport_header(skb); in copy_esn_pktxt()
407 iv = skb_transport_header(skb) + sizeof(struct ip_esp_hdr); in copy_esn_pktxt()
414 iv = skb_transport_header(skb) + sizeof(struct ip_esp_hdr); in copy_esn_pktxt()
593 sizeof(struct ip_esp_hdr) + 1); in chcr_crypto_wreq()
605 sizeof(struct ip_esp_hdr)); in chcr_crypto_wreq()
606 ciphstart = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr) + in chcr_crypto_wreq()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c186 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv_esn()
198 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv()
206 struct ip_esp_hdr *esph; in mlx5e_ipsec_set_metadata()
211 esph = ip_esp_hdr(skb); in mlx5e_ipsec_set_metadata()
/Linux-v5.4/net/ipv4/netfilter/
Dnf_log_ipv4.c222 struct ip_esp_hdr _esph; in dump_ipv4_packet()
223 const struct ip_esp_hdr *eh; in dump_ipv4_packet()
/Linux-v5.4/net/ipv6/netfilter/
Dnf_log_ipv6.c162 struct ip_esp_hdr _esph; in dump_ipv6_packet()
163 const struct ip_esp_hdr *eh; in dump_ipv6_packet()
/Linux-v5.4/include/uapi/linux/
Dip.h118 struct ip_esp_hdr { struct
/Linux-v5.4/net/xfrm/
Dxfrm_interface.c385 struct ip_esp_hdr *esph; in xfrmi4_err()
393 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in xfrmi4_err()
445 struct ip_esp_hdr *esph; in xfrmi6_err()
453 esph = (struct ip_esp_hdr *)(skb->data + offset); in xfrmi6_err()
Dxfrm_input.c148 hlen = sizeof(struct ip_esp_hdr); in xfrm_parse_spi()
149 offset = offsetof(struct ip_esp_hdr, spi); in xfrm_parse_spi()
150 offset_seq = offsetof(struct ip_esp_hdr, seq_no); in xfrm_parse_spi()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c580 spi = ((struct ip_esp_hdr *)c_hdr)->spi; in ixgbevf_ipsec_rx()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c1193 spi = ((struct ip_esp_hdr *)c_hdr)->spi; in ixgbe_ipsec_rx()