Lines Matching refs:esph
288 struct ip_esp_hdr *esph = (void *)(skb->data + offset); in esp_restore_header() local
292 esph->seq_no = esph->spi; in esp_restore_header()
293 esph->spi = *seqhi; in esp_restore_header()
307 struct ip_esp_hdr *esph, in esp_output_set_extra() argument
323 extra->esphoff = (unsigned char *)esph - in esp_output_set_extra()
325 esph = (struct ip_esp_hdr *)((unsigned char *)esph - 4); in esp_output_set_extra()
326 extra->seqhi = esph->spi; in esp_output_set_extra()
327 esph->seq_no = htonl(seqhi); in esp_output_set_extra()
330 esph->spi = x->id.spi; in esp_output_set_extra()
332 return esph; in esp_output_set_extra()
357 uh = (struct udphdr *)esp->esph; in esp_output_udp_encap()
379 __be16 *lenp = (void *)esp->esph; in esp_output_tcp_encap()
380 struct ip_esp_hdr *esph; in esp_output_tcp_encap() local
396 esph = (struct ip_esp_hdr *)(lenp + 1); in esp_output_tcp_encap()
398 return esph; in esp_output_tcp_encap()
413 struct ip_esp_hdr *esph; in esp_output_encap() local
427 esph = esp_output_udp_encap(skb, encap_type, esp, sport, dport); in esp_output_encap()
430 esph = esp_output_tcp_encap(x, skb, esp); in esp_output_encap()
434 if (IS_ERR(esph)) in esp_output_encap()
435 return PTR_ERR(esph); in esp_output_encap()
437 esp->esph = esph; in esp_output_encap()
515 esph_offset = (unsigned char *)esp->esph - skb_transport_header(skb); in esp_output_head()
521 esp->esph = (struct ip_esp_hdr *)(skb_transport_header(skb) + esph_offset); in esp_output_head()
541 struct ip_esp_hdr *esph; in esp_output_tail() local
574 esph = esp_output_set_extra(skb, x, esp->esph, extra); in esp_output_tail()
575 esp->esph = esph; in esp_output_tail()
579 (unsigned char *)esph - skb->data, in esp_output_tail()
607 (unsigned char *)esph - skb->data, in esp_output_tail()
658 struct ip_esp_hdr *esph; in esp_output() local
686 esp.esph = ip_esp_hdr(skb); in esp_output()
692 esph = esp.esph; in esp_output()
693 esph->spi = x->id.spi; in esp_output()
695 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in esp_output()
849 struct ip_esp_hdr *esph; in esp_input_set_header() local
856 esph = skb_push(skb, 4); in esp_input_set_header()
857 *seqhi = esph->spi; in esp_input_set_header()
858 esph->spi = esph->seq_no; in esp_input_set_header()
859 esph->seq_no = XFRM_SKB_CB(skb)->seq.input.hi; in esp_input_set_header()
973 struct ip_esp_hdr *esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in esp4_err() local
988 esph->spi, IPPROTO_ESP, AF_INET); in esp4_err()