Lines Matching refs:top_iph
46 struct iphdr *iph, *top_iph;
54 top_iph = ip_hdr(skb);
56 top_iph->ihl = 5;
57 top_iph->version = 4;
63 top_iph->protocol = IPPROTO_IPIP;
64 top_iph->tos = INET_ECN_encapsulate(iph->tos, iph->tos);
65 top_iph->frag_off = (flags & XFRM_STATE_NOPMTUDISC) ?
71 top_iph->protocol = IPPROTO_IPV6;
72 top_iph->tos = INET_ECN_encapsulate(iph->tos, ipv6_get_dsfield(ipv6h));
73 top_iph->frag_off = 0;
78 IP_ECN_clear(top_iph);
80 if (!top_iph->frag_off)
81 __ip_select_ident(top_iph, dst->child, 0);
83 top_iph->ttl = dst_metric(dst->child, RTAX_HOPLIMIT);
85 top_iph->saddr = x->props.saddr.a4;
86 top_iph->daddr = x->id.daddr.a4;