Lines Matching defs:iph
11 * Alan Cox : Fixed bug with 1.3.18 and IPIP not working (now needs to set skb->h.iph)
132 const struct iphdr *iph = (const struct iphdr *)skb->data;
139 iph->daddr, iph->saddr, 0);
173 ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol);
178 ipv4_redirect(skb, net, t->parms.link, iph->protocol);
182 if (t->parms.iph.daddr == 0) {
187 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED)
218 const struct iphdr *iph;
220 iph = ip_hdr(skb);
222 iph->saddr, iph->daddr, 0);
226 if (tunnel->parms.iph.protocol != ipproto &&
227 tunnel->parms.iph.protocol != 0)
278 const struct iphdr *tiph = &tunnel->parms.iph;
336 if (p->iph.version != 4 ||
337 !ipip_tunnel_ioctl_verify_protocol(p->iph.protocol) ||
338 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF)))
384 __dev_addr_set(dev, &tunnel->parms.iph.saddr, 4);
385 memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4);
413 parms->iph.version = 4;
414 parms->iph.protocol = IPPROTO_IPIP;
415 parms->iph.ihl = 5;
471 if (((dev->flags & IFF_POINTOPOINT) && !p.iph.daddr) ||
472 (!(dev->flags & IFF_POINTOPOINT) && p.iph.daddr))
516 nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) ||
517 nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) ||
518 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) ||
519 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) ||
520 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
522 !!(parm->iph.frag_off & htons(IP_DF))) ||