Searched refs:top_iph (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/net/xfrm/ |
D | xfrm_output.c | 227 struct iphdr *top_iph; in xfrm4_beet_encap_add() local 236 (XFRM_MODE_SKB_CB(skb)->ihl - sizeof(*top_iph))); in xfrm4_beet_encap_add() 241 skb->transport_header = skb->network_header + sizeof(*top_iph); in xfrm4_beet_encap_add() 247 top_iph = ip_hdr(skb); in xfrm4_beet_encap_add() 255 ph->nexthdr = top_iph->protocol; in xfrm4_beet_encap_add() 259 top_iph->protocol = IPPROTO_BEETPH; in xfrm4_beet_encap_add() 260 top_iph->ihl = sizeof(struct iphdr) / 4; in xfrm4_beet_encap_add() 263 top_iph->saddr = x->props.saddr.a4; in xfrm4_beet_encap_add() 264 top_iph->daddr = x->id.daddr.a4; in xfrm4_beet_encap_add() 277 struct iphdr *top_iph; in xfrm4_tunnel_encap_add() local [all …]
|
/linux-6.12.1/net/ipv4/ |
D | ah4.c | 124 struct iphdr *top_iph = ip_hdr(skb); in ah_output_done() local 132 top_iph->tos = iph->tos; in ah_output_done() 133 top_iph->ttl = iph->ttl; in ah_output_done() 134 top_iph->frag_off = iph->frag_off; in ah_output_done() 135 if (top_iph->ihl != 5) { in ah_output_done() 136 top_iph->daddr = iph->daddr; in ah_output_done() 137 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done() 154 struct iphdr *iph, *top_iph; in ah_output() local 189 top_iph = ip_hdr(skb); in ah_output() 191 iph->tos = top_iph->tos; in ah_output() [all …]
|
/linux-6.12.1/net/ipv6/ |
D | ah6.c | 289 struct ipv6hdr *top_iph = ipv6_hdr(skb); in ah6_output_done() local 302 memcpy(top_iph, iph_base, IPV6HDR_BASELEN); in ah6_output_done() 306 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output_done() 308 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output_done() 328 struct ipv6hdr *top_iph; in ah6_output() local 370 top_iph = ipv6_hdr(skb); in ah6_output() 371 top_iph->payload_len = htons(skb->len - sizeof(*top_iph)); in ah6_output() 379 memcpy(iph_base, top_iph, IPV6HDR_BASELEN); in ah6_output() 383 memcpy(iph_ext, &top_iph->saddr, extlen); in ah6_output() 385 memcpy(iph_ext, &top_iph->daddr, extlen); in ah6_output() [all …]
|