Lines Matching defs:iph
469 p.iph.daddr = v->vifc_rmt_addr.s_addr;
470 p.iph.saddr = v->vifc_lcl_addr.s_addr;
471 p.iph.version = 4;
472 p.iph.ihl = 5;
473 p.iph.protocol = IPPROTO_IPIP;
1123 const struct iphdr *iph = ip_hdr(skb);
1130 if (c->mfc_mcastgrp == iph->daddr &&
1131 c->mfc_origin == iph->saddr) {
1149 c->mfc_origin = iph->saddr;
1150 c->mfc_mcastgrp = iph->daddr;
1796 struct iphdr *iph;
1802 iph = ip_hdr(skb);
1804 iph->version = 4;
1805 iph->tos = old_iph->tos;
1806 iph->ttl = old_iph->ttl;
1807 iph->frag_off = 0;
1808 iph->daddr = daddr;
1809 iph->saddr = saddr;
1810 iph->protocol = IPPROTO_IPIP;
1811 iph->ihl = 5;
1812 iph->tot_len = htons(skb->len);
1814 ip_send_check(iph);
1860 const struct iphdr *iph = ip_hdr(skb);
1885 iph->tos & INET_DSCP_MASK, vif->link);
1890 rt = ip_route_output_ports(net, &fl4, NULL, iph->daddr, 0,
1893 iph->tos & INET_DSCP_MASK, vif->link);
1898 if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) {
2120 struct iphdr *iph = ip_hdr(skb);
2122 .daddr = iph->daddr,
2123 .saddr = iph->saddr,
2124 .flowi4_dscp = ip4h_dscp(iph),
2425 struct iphdr *iph;
2446 iph = ip_hdr(skb2);
2447 iph->ihl = sizeof(struct iphdr) >> 2;
2448 iph->saddr = saddr;
2449 iph->daddr = daddr;
2450 iph->version = 0;