Home
last modified time | relevance | path

Searched refs:esph (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/net/ipv4/
Desp4.c155 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header() local
159 esph->seq_no = esph->spi; in esp_restore_header()
160 esph->spi = *seqhi; in esp_restore_header()
174 struct ip_esp_hdr *esph, in esp_output_set_extra() argument
190 extra->esphoff = (unsigned char *)esph - in esp_output_set_extra()
192 esph = (struct ip_esp_hdr *)((unsigned char *)esph - 4); in esp_output_set_extra()
193 extra->seqhi = esph->spi; in esp_output_set_extra()
194 esph->seq_no = htonl(seqhi); in esp_output_set_extra()
197 esph->spi = x->id.spi; in esp_output_set_extra()
199 return esph; in esp_output_set_extra()
[all …]
Desp4_offload.c94 struct ip_esp_hdr *esph; in esp4_gso_encap() local
100 esph = ip_esp_hdr(skb); in esp4_gso_encap()
103 esph->spi = x->id.spi; in esp4_gso_encap()
104 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in esp4_gso_encap()
113 struct ip_esp_hdr *esph; in esp4_gso_segment() local
126 esph = ip_esp_hdr(skb); in esp4_gso_segment()
128 if (esph->spi != x->id.spi) in esp4_gso_segment()
131 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp4_gso_segment()
134 __skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)); in esp4_gso_segment()
168 struct ip_esp_hdr *esph; in esp_xmit() local
[all …]
Dip_vti.c273 struct ip_esp_hdr *esph; in vti4_err() local
290 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err()
291 spi = esph->spi; in vti4_err()
/Linux-v4.19/net/ipv6/
Desp6_offload.c121 struct ip_esp_hdr *esph; in esp6_gso_encap() local
127 esph = ip_esp_hdr(skb); in esp6_gso_encap()
130 esph->spi = x->id.spi; in esp6_gso_encap()
131 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in esp6_gso_encap()
140 struct ip_esp_hdr *esph; in esp6_gso_segment() local
153 esph = ip_esp_hdr(skb); in esp6_gso_segment()
155 if (esph->spi != x->id.spi) in esp6_gso_segment()
158 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp6_gso_segment()
161 __skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)); in esp6_gso_segment()
196 struct ip_esp_hdr *esph; in esp6_xmit() local
[all …]
Desp6.c175 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header() local
179 esph->seq_no = esph->spi; in esp_restore_header()
180 esph->spi = *seqhi; in esp_restore_header()
190 struct ip_esp_hdr *esph, in esp_output_set_esn() argument
200 esph = (void *)(skb_transport_header(skb) - sizeof(__be32)); in esp_output_set_esn()
201 *seqhi = esph->spi; in esp_output_set_esn()
203 esph->seq_no = htonl(xo->seq.hi); in esp_output_set_esn()
205 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.hi); in esp_output_set_esn()
208 esph->spi = x->id.spi; in esp_output_set_esn()
210 return esph; in esp_output_set_esn()
[all …]
Dip6_vti.c572 struct ip_esp_hdr *esph; in vti6_err() local
587 esph = (struct ip_esp_hdr *)(skb->data + offset); in vti6_err()
588 spi = esph->spi; in vti6_err()
/Linux-v4.19/include/net/
Desp.h15 struct ip_esp_hdr *esph; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c218 struct ip_esp_hdr *esph; in mlx5e_ipsec_set_metadata() local
223 esph = ip_esp_hdr(skb); in mlx5e_ipsec_set_metadata()
233 ntohl(tcph->seq), ntohl(esph->seq_no)); in mlx5e_ipsec_set_metadata()
/Linux-v4.19/net/xfrm/
Dxfrm_interface.c430 struct ip_esp_hdr *esph; in xfrmi4_err() local
438 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in xfrmi4_err()
439 spi = esph->spi; in xfrmi4_err()
490 struct ip_esp_hdr *esph; in xfrmi6_err() local
498 esph = (struct ip_esp_hdr *)(skb->data + offset); in xfrmi6_err()
499 spi = esph->spi; in xfrmi6_err()