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)
275 const struct iphdr *tiph = &tunnel->parms.iph;
333 if (p->iph.version != 4 ||
334 !ipip_tunnel_ioctl_verify_protocol(p->iph.protocol) ||
335 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF)))
381 memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4);
382 memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4);
410 parms->iph.version = 4;
411 parms->iph.protocol = IPPROTO_IPIP;
412 parms->iph.ihl = 5;
422 parms->iph.saddr = nla_get_in_addr(data[IFLA_IPTUN_LOCAL]);
425 parms->iph.daddr = nla_get_in_addr(data[IFLA_IPTUN_REMOTE]);
428 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]);
429 if (parms->iph.ttl)
430 parms->iph.frag_off = htons(IP_DF);
434 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]);
437 parms->iph.protocol = nla_get_u8(data[IFLA_IPTUN_PROTO]);
440 parms->iph.frag_off = htons(IP_DF);
524 if (((dev->flags & IFF_POINTOPOINT) && !p.iph.daddr) ||
525 (!(dev->flags & IFF_POINTOPOINT) && p.iph.daddr))
569 nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) ||
570 nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) ||
571 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) ||
572 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) ||
573 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
575 !!(parm->iph.frag_off & htons(IP_DF))) ||