Lines Matching refs: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;
141 t = ip_tunnel_lookup(itn, skb->dev->ifindex, flags, iph->daddr,
142 iph->saddr, 0);
176 ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol);
181 ipv4_redirect(skb, net, t->parms.link, iph->protocol);
185 if (t->parms.iph.daddr == 0) {
190 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED)
222 const struct iphdr *iph;
226 iph = ip_hdr(skb);
227 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, flags, iph->saddr,
228 iph->daddr, 0);
232 if (tunnel->parms.iph.protocol != ipproto &&
233 tunnel->parms.iph.protocol != 0)
286 const struct iphdr *tiph = &tunnel->parms.iph;
344 if (p->iph.version != 4 ||
345 !ipip_tunnel_ioctl_verify_protocol(p->iph.protocol) ||
346 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF)))
360 const struct iphdr *tiph = &tunnel->parms.iph;
418 __dev_addr_set(dev, &tunnel->parms.iph.saddr, 4);
419 memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4);
447 parms->iph.version = 4;
448 parms->iph.protocol = IPPROTO_IPIP;
449 parms->iph.ihl = 5;
508 if (((dev->flags & IFF_POINTOPOINT) && !p.iph.daddr) ||
509 (!(dev->flags & IFF_POINTOPOINT) && p.iph.daddr))
553 nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) ||
554 nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) ||
555 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) ||
556 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) ||
557 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
559 !!(parm->iph.frag_off & htons(IP_DF))) ||