Searched refs:top_iph (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/net/xfrm/ |
D | xfrm_output.c | 228 struct iphdr *top_iph; in xfrm4_beet_encap_add() local 237 (XFRM_MODE_SKB_CB(skb)->ihl - sizeof(*top_iph))); in xfrm4_beet_encap_add() 242 skb->transport_header = skb->network_header + sizeof(*top_iph); in xfrm4_beet_encap_add() 248 top_iph = ip_hdr(skb); in xfrm4_beet_encap_add() 256 ph->nexthdr = top_iph->protocol; in xfrm4_beet_encap_add() 260 top_iph->protocol = IPPROTO_BEETPH; in xfrm4_beet_encap_add() 261 top_iph->ihl = sizeof(struct iphdr) / 4; in xfrm4_beet_encap_add() 264 top_iph->saddr = x->props.saddr.a4; in xfrm4_beet_encap_add() 265 top_iph->daddr = x->id.daddr.a4; in xfrm4_beet_encap_add() 278 struct iphdr *top_iph; in xfrm4_tunnel_encap_add() local [all …]
|
/linux-6.1.9/net/ipv4/ |
D | ah4.c | 127 struct iphdr *top_iph = ip_hdr(skb); in ah_output_done() local 135 top_iph->tos = iph->tos; in ah_output_done() 136 top_iph->ttl = iph->ttl; in ah_output_done() 137 top_iph->frag_off = iph->frag_off; in ah_output_done() 138 if (top_iph->ihl != 5) { in ah_output_done() 139 top_iph->daddr = iph->daddr; in ah_output_done() 140 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done() 157 struct iphdr *iph, *top_iph; in ah_output() local 192 top_iph = ip_hdr(skb); in ah_output() 194 iph->tos = top_iph->tos; in ah_output() [all …]
|
/linux-6.1.9/net/ipv6/ |
D | ah6.c | 292 struct ipv6hdr *top_iph = ipv6_hdr(skb); in ah6_output_done() local 305 memcpy(top_iph, iph_base, IPV6HDR_BASELEN); in ah6_output_done() 309 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output_done() 311 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output_done() 331 struct ipv6hdr *top_iph; in ah6_output() local 373 top_iph = ipv6_hdr(skb); in ah6_output() 374 top_iph->payload_len = htons(skb->len - sizeof(*top_iph)); in ah6_output() 382 memcpy(iph_base, top_iph, IPV6HDR_BASELEN); in ah6_output() 386 memcpy(iph_ext, &top_iph->saddr, extlen); in ah6_output() 388 memcpy(iph_ext, &top_iph->daddr, extlen); in ah6_output() [all …]
|