Lines Matching refs:parms

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()
226 if (tunnel->parms.iph.protocol != ipproto && in ipip_tunnel_rcv()
227 tunnel->parms.iph.protocol != 0) in ipip_tunnel_rcv()
275 const struct iphdr *tiph = &tunnel->parms.iph; in ipip_tunnel_xmit()
381 memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4); in ipip_tunnel_init()
382 memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4); in ipip_tunnel_init()
405 struct ip_tunnel_parm *parms, bool *collect_md, in ipip_netlink_parms() argument
408 memset(parms, 0, sizeof(*parms)); in ipip_netlink_parms()
410 parms->iph.version = 4; in ipip_netlink_parms()
411 parms->iph.protocol = IPPROTO_IPIP; in ipip_netlink_parms()
412 parms->iph.ihl = 5; in ipip_netlink_parms()
419 parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]); in ipip_netlink_parms()
422 parms->iph.saddr = nla_get_in_addr(data[IFLA_IPTUN_LOCAL]); in ipip_netlink_parms()
425 parms->iph.daddr = nla_get_in_addr(data[IFLA_IPTUN_REMOTE]); in ipip_netlink_parms()
428 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]); in ipip_netlink_parms()
429 if (parms->iph.ttl) in ipip_netlink_parms()
430 parms->iph.frag_off = htons(IP_DF); in ipip_netlink_parms()
434 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ipip_netlink_parms()
437 parms->iph.protocol = nla_get_u8(data[IFLA_IPTUN_PROTO]); in ipip_netlink_parms()
440 parms->iph.frag_off = htons(IP_DF); in ipip_netlink_parms()
566 struct ip_tunnel_parm *parm = &tunnel->parms; in ipip_fill_info()