Lines Matching refs:ip_esp_hdr
324 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()
437 static struct ip_esp_hdr *esp6_output_tcp_encap(struct xfrm_state *x, in esp6_output_tcp_encap()
449 struct ip_esp_hdr *esph; in esp6_output_encap()
558 esp->esph = (struct ip_esp_hdr *)(skb_transport_header(skb) + esph_offset); in esp6_output_head()
578 struct ip_esp_hdr *esph; in esp6_output_tail()
585 assoclen = sizeof(struct ip_esp_hdr); in esp6_output_tail()
696 struct ip_esp_hdr *esph; in esp6_output()
724 esp.esph = ip_esp_hdr(skb); in esp6_output()
754 hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); in esp_remove_trailer()
792 int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); in esp6_input_done2()
910 struct ip_esp_hdr *esph = skb_push(skb, 4); in esp_input_set_header()
932 int elen = skb->len - sizeof(struct ip_esp_hdr) - ivlen; in esp6_input()
942 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + ivlen)) { in esp6_input()
952 assoclen = sizeof(struct ip_esp_hdr); in esp6_input()
1028 struct ip_esp_hdr *esph = (struct ip_esp_hdr *)(skb->data + offset); in esp6_err()
1202 x->props.header_len = sizeof(struct ip_esp_hdr) + in esp6_init_state()