Lines Matching defs:top_iph
51 struct ipv6hdr *top_iph, int extlen)
57 iph_ext->saddr = top_iph->saddr;
59 iph_ext->daddr = top_iph->daddr;
60 memcpy(&iph_ext->hdrs, top_iph + 1, extlen - sizeof(*iph_ext));
64 static inline void ah6_restore_hdrs(struct ipv6hdr *top_iph,
71 top_iph->saddr = iph_ext->saddr;
73 top_iph->daddr = iph_ext->daddr;
74 memcpy(top_iph + 1, &iph_ext->hdrs, extlen - sizeof(*iph_ext));
317 struct ipv6hdr *top_iph = ipv6_hdr(skb);
330 memcpy(top_iph, iph_base, IPV6HDR_BASELEN);
332 ah6_restore_hdrs(top_iph, iph_ext, extlen);
350 struct ipv6hdr *top_iph;
392 top_iph = ipv6_hdr(skb);
393 top_iph->payload_len = htons(skb->len - sizeof(*top_iph));
401 memcpy(iph_base, top_iph, IPV6HDR_BASELEN);
403 ah6_save_hdrs(iph_ext, top_iph, extlen);
405 err = ipv6_clear_mutable_options(top_iph,
407 sizeof(*top_iph),
415 top_iph->priority = 0;
416 top_iph->flow_lbl[0] = 0;
417 top_iph->flow_lbl[1] = 0;
418 top_iph->flow_lbl[2] = 0;
419 top_iph->hop_limit = 0;
453 memcpy(top_iph, iph_base, IPV6HDR_BASELEN);
455 ah6_restore_hdrs(top_iph, iph_ext, extlen);