Lines Matching defs:iph
451 p.iph.daddr = v->vifc_rmt_addr.s_addr;
452 p.iph.saddr = v->vifc_lcl_addr.s_addr;
453 p.iph.version = 4;
454 p.iph.ihl = 5;
455 p.iph.protocol = IPPROTO_IPIP;
1105 const struct iphdr *iph = ip_hdr(skb);
1112 if (c->mfc_mcastgrp == iph->daddr &&
1113 c->mfc_origin == iph->saddr) {
1131 c->mfc_origin = iph->saddr;
1132 c->mfc_mcastgrp = iph->daddr;
1778 struct iphdr *iph;
1784 iph = ip_hdr(skb);
1786 iph->version = 4;
1787 iph->tos = old_iph->tos;
1788 iph->ttl = old_iph->ttl;
1789 iph->frag_off = 0;
1790 iph->daddr = daddr;
1791 iph->saddr = saddr;
1792 iph->protocol = IPPROTO_IPIP;
1793 iph->ihl = 5;
1794 iph->tot_len = htons(skb->len);
1796 ip_send_check(iph);
1842 const struct iphdr *iph = ip_hdr(skb);
1871 RT_TOS(iph->tos), vif->link);
1876 rt = ip_route_output_ports(net, &fl4, NULL, iph->daddr, 0,
1879 RT_TOS(iph->tos), vif->link);
1886 if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) {
2079 struct iphdr *iph = ip_hdr(skb);
2081 .daddr = iph->daddr,
2082 .saddr = iph->saddr,
2083 .flowi4_tos = RT_TOS(iph->tos),
2278 struct iphdr *iph;
2299 iph = ip_hdr(skb2);
2300 iph->ihl = sizeof(struct iphdr) >> 2;
2301 iph->saddr = saddr;
2302 iph->daddr = daddr;
2303 iph->version = 0;