Lines Matching refs:iph
132 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipip_err() local
139 iph->daddr, iph->saddr, 0); in ipip_err()
173 ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol); in ipip_err()
178 ipv4_redirect(skb, net, t->parms.link, iph->protocol); in ipip_err()
182 if (t->parms.iph.daddr == 0) { in ipip_err()
187 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipip_err()
218 const struct iphdr *iph; in ipip_tunnel_rcv() local
220 iph = ip_hdr(skb); in ipip_tunnel_rcv()
222 iph->saddr, iph->daddr, 0); in ipip_tunnel_rcv()
226 if (tunnel->parms.iph.protocol != ipproto && in ipip_tunnel_rcv()
227 tunnel->parms.iph.protocol != 0) in ipip_tunnel_rcv()
277 const struct iphdr *tiph = &tunnel->parms.iph; in ipip_tunnel_xmit()
335 if (p->iph.version != 4 || in ipip_tunnel_ctl()
336 !ipip_tunnel_ioctl_verify_protocol(p->iph.protocol) || in ipip_tunnel_ctl()
337 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF))) in ipip_tunnel_ctl()
383 __dev_addr_set(dev, &tunnel->parms.iph.saddr, 4); in ipip_tunnel_init()
384 memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4); in ipip_tunnel_init()
412 parms->iph.version = 4; in ipip_netlink_parms()
413 parms->iph.protocol = IPPROTO_IPIP; in ipip_netlink_parms()
414 parms->iph.ihl = 5; in ipip_netlink_parms()
424 parms->iph.saddr = nla_get_in_addr(data[IFLA_IPTUN_LOCAL]); in ipip_netlink_parms()
427 parms->iph.daddr = nla_get_in_addr(data[IFLA_IPTUN_REMOTE]); in ipip_netlink_parms()
430 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]); in ipip_netlink_parms()
431 if (parms->iph.ttl) in ipip_netlink_parms()
432 parms->iph.frag_off = htons(IP_DF); in ipip_netlink_parms()
436 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ipip_netlink_parms()
439 parms->iph.protocol = nla_get_u8(data[IFLA_IPTUN_PROTO]); in ipip_netlink_parms()
442 parms->iph.frag_off = htons(IP_DF); in ipip_netlink_parms()
526 if (((dev->flags & IFF_POINTOPOINT) && !p.iph.daddr) || in ipip_changelink()
527 (!(dev->flags & IFF_POINTOPOINT) && p.iph.daddr)) in ipip_changelink()
571 nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) || in ipip_fill_info()
572 nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) || in ipip_fill_info()
573 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) || in ipip_fill_info()
574 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) || in ipip_fill_info()
575 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) || in ipip_fill_info()
577 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip_fill_info()