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()
277 const struct iphdr *tiph = &tunnel->parms.iph; in ipip_tunnel_xmit()
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()
407 struct ip_tunnel_parm *parms, bool *collect_md, in ipip_netlink_parms() argument
410 memset(parms, 0, sizeof(*parms)); in ipip_netlink_parms()
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()
421 parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]); 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()
568 struct ip_tunnel_parm *parm = &tunnel->parms; in ipip_fill_info()