Lines Matching defs:iph
453 p.iph.daddr = v->vifc_rmt_addr.s_addr;
454 p.iph.saddr = v->vifc_lcl_addr.s_addr;
455 p.iph.version = 4;
456 p.iph.ihl = 5;
457 p.iph.protocol = IPPROTO_IPIP;
1098 const struct iphdr *iph = ip_hdr(skb);
1105 if (c->mfc_mcastgrp == iph->daddr &&
1106 c->mfc_origin == iph->saddr) {
1124 c->mfc_origin = iph->saddr;
1125 c->mfc_mcastgrp = iph->daddr;
1753 struct iphdr *iph;
1759 iph = ip_hdr(skb);
1761 iph->version = 4;
1762 iph->tos = old_iph->tos;
1763 iph->ttl = old_iph->ttl;
1764 iph->frag_off = 0;
1765 iph->daddr = daddr;
1766 iph->saddr = saddr;
1767 iph->protocol = IPPROTO_IPIP;
1768 iph->ihl = 5;
1769 iph->tot_len = htons(skb->len);
1771 ip_send_check(iph);
1818 const struct iphdr *iph = ip_hdr(skb);
1845 RT_TOS(iph->tos), vif->link);
1850 rt = ip_route_output_ports(net, &fl4, NULL, iph->daddr, 0,
1853 RT_TOS(iph->tos), vif->link);
1860 if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) {
2049 struct iphdr *iph = ip_hdr(skb);
2051 .daddr = iph->daddr,
2052 .saddr = iph->saddr,
2053 .flowi4_tos = RT_TOS(iph->tos),
2256 struct iphdr *iph;
2280 iph = ip_hdr(skb2);
2281 iph->ihl = sizeof(struct iphdr) >> 2;
2282 iph->saddr = saddr;
2283 iph->daddr = daddr;
2284 iph->version = 0;