Lines Matching refs:parms
123 if (!ipv6_addr_equal(local, &t->parms.laddr) || in ip6_tnl_lookup()
124 !ipv6_addr_equal(remote, &t->parms.raddr) || in ip6_tnl_lookup()
128 if (link == t->parms.link) in ip6_tnl_lookup()
137 if (!ipv6_addr_equal(local, &t->parms.laddr) || in ip6_tnl_lookup()
138 !ipv6_addr_any(&t->parms.raddr) || in ip6_tnl_lookup()
142 if (link == t->parms.link) in ip6_tnl_lookup()
150 if (!ipv6_addr_equal(remote, &t->parms.raddr) || in ip6_tnl_lookup()
151 !ipv6_addr_any(&t->parms.laddr) || in ip6_tnl_lookup()
155 if (link == t->parms.link) in ip6_tnl_lookup()
211 struct ip6_tnl __rcu **tp = ip6_tnl_bucket(ip6n, &t->parms); in ip6_tnl_link()
213 if (t->parms.collect_md) in ip6_tnl_link()
231 if (t->parms.collect_md) in ip6_tnl_unlink()
234 for (tp = ip6_tnl_bucket(ip6n, &t->parms); in ip6_tnl_unlink()
267 strcpy(t->parms.name, dev->name); in ip6_tnl_create2()
311 t->parms = *p; in ip6_tnl_create()
352 if (ipv6_addr_equal(local, &t->parms.laddr) && in ip6_tnl_locate()
353 ipv6_addr_equal(remote, &t->parms.raddr) && in ip6_tnl_locate()
354 p->link == t->parms.link) { in ip6_tnl_locate()
488 tproto = READ_ONCE(t->parms.proto); in ip6_tnl_err()
497 t->parms.name); in ip6_tnl_err()
503 t->parms.name); in ip6_tnl_err()
519 t->parms.name); in ip6_tnl_err()
524 t->parms.name); in ip6_tnl_err()
716 if (t->parms.flags & IP6_TNL_F_RCV_DSCP_COPY) in ip4ip6_dscp_ecn_decapsulate()
726 if (t->parms.flags & IP6_TNL_F_RCV_DSCP_COPY) in ip6ip6_dscp_ecn_decapsulate()
744 struct __ip6_tnl_parm *p = &t->parms; in ip6_tnl_get_cap()
769 struct __ip6_tnl_parm *p = &t->parms; in ip6_tnl_rcv_ctl()
806 (tunnel->parms.i_flags & TUNNEL_CSUM)) || in __ip6_tnl_rcv()
808 !(tunnel->parms.i_flags & TUNNEL_CSUM))) { in __ip6_tnl_rcv()
814 if (tunnel->parms.i_flags & TUNNEL_SEQ) { in __ip6_tnl_rcv()
930 u8 tproto = READ_ONCE(t->parms.proto); in ipxip6_rcv()
941 if (t->parms.collect_md) { in ipxip6_rcv()
1014 return ipv6_addr_equal(&t->parms.raddr, &hdr->saddr); in ip6_tnl_addr_conflict()
1021 struct __ip6_tnl_parm *p = &t->parms; in ip6_tnl_xmit_ctl()
1025 if (t->parms.collect_md) in ip6_tnl_xmit_ctl()
1094 if (t->parms.collect_md) { in ip6_tnl_xmit()
1098 hop_limit = t->parms.hop_limit; in ip6_tnl_xmit()
1102 if (ipv6_addr_any(&t->parms.raddr)) { in ip6_tnl_xmit()
1125 } else if (t->parms.proto != 0 && !(t->parms.flags & in ip6_tnl_xmit()
1155 if (t->parms.collect_md && ipv6_addr_any(&fl6->saddr) && in ip6_tnl_xmit()
1167 t->parms.name); in ip6_tnl_xmit()
1217 if (t->parms.collect_md) { in ip6_tnl_xmit()
1287 tproto = READ_ONCE(t->parms.proto); in ipxip6_tnl_xmit()
1291 if (t->parms.collect_md) { in ipxip6_tnl_xmit()
1320 if (!(t->parms.flags & IP6_TNL_F_IGN_ENCAP_LIMIT)) in ipxip6_tnl_xmit()
1321 encap_limit = t->parms.encap_limit; in ipxip6_tnl_xmit()
1344 if (t->parms.flags & IP6_TNL_F_USE_ORIG_FWMARK) in ipxip6_tnl_xmit()
1347 fl6.flowi6_mark = t->parms.fwmark; in ipxip6_tnl_xmit()
1352 if (t->parms.flags & IP6_TNL_F_USE_ORIG_TCLASS) in ipxip6_tnl_xmit()
1355 dsfield = ip6_tclass(t->parms.flowinfo); in ipxip6_tnl_xmit()
1360 if (t->parms.flags & IP6_TNL_F_USE_ORIG_TCLASS) in ipxip6_tnl_xmit()
1363 dsfield = ip6_tclass(t->parms.flowinfo); in ipxip6_tnl_xmit()
1364 if (t->parms.flags & IP6_TNL_F_USE_ORIG_FLOWLABEL) in ipxip6_tnl_xmit()
1368 orig_dsfield = dsfield = ip6_tclass(t->parms.flowinfo); in ipxip6_tnl_xmit()
1447 struct __ip6_tnl_parm *p = &t->parms; in ip6_tnl_link_config()
1498 if (!(t->parms.flags & IP6_TNL_F_IGN_ENCAP_LIMIT)) in ip6_tnl_link_config()
1519 t->parms.laddr = p->laddr; in ip6_tnl_change()
1520 t->parms.raddr = p->raddr; in ip6_tnl_change()
1521 t->parms.flags = p->flags; in ip6_tnl_change()
1522 t->parms.hop_limit = p->hop_limit; in ip6_tnl_change()
1523 t->parms.encap_limit = p->encap_limit; in ip6_tnl_change()
1524 t->parms.flowinfo = p->flowinfo; in ip6_tnl_change()
1525 t->parms.link = p->link; in ip6_tnl_change()
1526 t->parms.proto = p->proto; in ip6_tnl_change()
1527 t->parms.fwmark = p->fwmark; in ip6_tnl_change()
1550 t->parms.proto = p->proto; in ip6_tnl0_update()
1639 ip6_tnl_parm_to_user(&p, &t->parms); in ip6_tnl_siocdevprivate()
1672 ip6_tnl_parm_to_user(&p, &t->parms); in ip6_tnl_siocdevprivate()
1722 if (tnl->parms.proto == IPPROTO_IPV6) { in ip6_tnl_change_mtu()
1729 if (tnl->parms.proto == IPPROTO_IPV6 || tnl->parms.proto == 0) { in ip6_tnl_change_mtu()
1745 return t->parms.link; in ip6_tnl_get_iflink()
1881 if (!(t->parms.flags & IP6_TNL_F_IGN_ENCAP_LIMIT)) in ip6_tnl_dev_init_gen()
1911 if (t->parms.collect_md) in ip6_tnl_dev_init()
1929 t->parms.proto = IPPROTO_IPV6; in ip6_fb_tnl_dev_init()
1953 struct __ip6_tnl_parm *parms) in ip6_tnl_netlink_parms() argument
1955 memset(parms, 0, sizeof(*parms)); in ip6_tnl_netlink_parms()
1961 parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]); in ip6_tnl_netlink_parms()
1964 parms->laddr = nla_get_in6_addr(data[IFLA_IPTUN_LOCAL]); in ip6_tnl_netlink_parms()
1967 parms->raddr = nla_get_in6_addr(data[IFLA_IPTUN_REMOTE]); in ip6_tnl_netlink_parms()
1970 parms->hop_limit = nla_get_u8(data[IFLA_IPTUN_TTL]); in ip6_tnl_netlink_parms()
1973 parms->encap_limit = nla_get_u8(data[IFLA_IPTUN_ENCAP_LIMIT]); in ip6_tnl_netlink_parms()
1976 parms->flowinfo = nla_get_be32(data[IFLA_IPTUN_FLOWINFO]); in ip6_tnl_netlink_parms()
1979 parms->flags = nla_get_u32(data[IFLA_IPTUN_FLAGS]); in ip6_tnl_netlink_parms()
1982 parms->proto = nla_get_u8(data[IFLA_IPTUN_PROTO]); in ip6_tnl_netlink_parms()
1985 parms->collect_md = true; in ip6_tnl_netlink_parms()
1988 parms->fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ip6_tnl_netlink_parms()
2042 ip6_tnl_netlink_parms(data, &nt->parms); in ip6_tnl_newlink()
2044 if (nt->parms.collect_md) { in ip6_tnl_newlink()
2048 t = ip6_tnl_locate(net, &nt->parms, 0); in ip6_tnl_newlink()
2139 struct __ip6_tnl_parm *parm = &tunnel->parms; in ip6_tnl_fill_info()
2294 strcpy(t->parms.name, ip6n->fb_tnl_dev->name); in ip6_tnl_init_net()