/kernel/linux/linux-5.10/net/ipv6/ |
H A D | xfrm6_policy.c | 85 xdst->u.rt6.rt6i_idev = in6_dev_get(dev); in xfrm6_fill_dst() 86 if (!xdst->u.rt6.rt6i_idev) { in xfrm6_fill_dst() 93 xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST | in xfrm6_fill_dst() 96 xdst->u.rt6.rt6i_gateway = rt->rt6i_gateway; in xfrm6_fill_dst() 97 xdst->u.rt6.rt6i_dst = rt->rt6i_dst; in xfrm6_fill_dst() 98 xdst->u.rt6.rt6i_src = rt->rt6i_src; in xfrm6_fill_dst() 99 INIT_LIST_HEAD(&xdst->u.rt6.rt6i_uncached); in xfrm6_fill_dst() 100 rt6_uncached_list_add(&xdst->u.rt6); in xfrm6_fill_dst() 130 if (xdst->u.rt6.rt6i_uncached_list) in xfrm6_dst_destroy() 131 rt6_uncached_list_del(&xdst->u.rt6); in xfrm6_dst_destroy() [all...] |
H A D | fib6_rules.c | 110 if (res.rt6) in fib6_rule_lookup() 111 return &res.rt6->dst; in fib6_rule_lookup() 259 res->rt6 = rt; in __fib6_rule_action() 278 struct rt6_info *rt = res->rt6; in fib6_rule_suppress()
|
H A D | route.c | 1385 static bool rt6_is_valid(const struct rt6_info *rt6) in rt6_is_valid() argument 1387 return rt6->sernum == rt_genid_ipv6(dev_net(rt6->dst.dev)); in rt6_is_valid() 1530 struct rt6_info *rt6 = rt6_ex->rt6i; in __rt6_find_exception_spinlock() local 1531 bool matched = ipv6_addr_equal(daddr, &rt6->rt6i_dst.addr); in __rt6_find_exception_spinlock() 1535 matched = ipv6_addr_equal(saddr, &rt6->rt6i_src.addr); in __rt6_find_exception_spinlock() 1565 struct rt6_info *rt6 = rt6_ex->rt6i; in __rt6_find_exception_rcu() local 1566 bool matched = ipv6_addr_equal(daddr, &rt6->rt6i_dst.addr); in __rt6_find_exception_rcu() 1570 matched = ipv6_addr_equal(saddr, &rt6->rt6i_src.addr); in __rt6_find_exception_rcu() 2517 struct rt6_info *rt6; in ip6_route_output_flags() local 2724 struct rt6_info *rt6 = (struct rt6_info *)dst; __ip6_rt_update_pmtu() local 5507 struct rt6_info *rt6 = (struct rt6_info *)dst; rt6_fill_node() local [all...] |
H A D | icmp.c | 430 const struct rt6_info *rt6 = skb_rt6_info(skb); in icmp6_dev() local 435 if (rt6 && rt6->rt6i_idev) in icmp6_dev() 436 dev = rt6->rt6i_idev->dev; in icmp6_dev()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | xfrm6_policy.c | 78 xdst->u.rt6.rt6i_idev = in6_dev_get(dev); in xfrm6_fill_dst() 79 if (!xdst->u.rt6.rt6i_idev) { in xfrm6_fill_dst() 86 xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST | in xfrm6_fill_dst() 89 xdst->u.rt6.rt6i_gateway = rt->rt6i_gateway; in xfrm6_fill_dst() 90 xdst->u.rt6.rt6i_dst = rt->rt6i_dst; in xfrm6_fill_dst() 91 xdst->u.rt6.rt6i_src = rt->rt6i_src; in xfrm6_fill_dst() 92 rt6_uncached_list_add(&xdst->u.rt6); in xfrm6_fill_dst() 121 rt6_uncached_list_del(&xdst->u.rt6); in xfrm6_dst_destroy() 122 if (likely(xdst->u.rt6.rt6i_idev)) in xfrm6_dst_destroy() 123 in6_dev_put(xdst->u.rt6 in xfrm6_dst_destroy() [all...] |
H A D | fib6_rules.c | 111 if (res.rt6) in fib6_rule_lookup() 112 return &res.rt6->dst; in fib6_rule_lookup() 256 res->rt6 = rt; in __fib6_rule_action() 275 struct rt6_info *rt = res->rt6; in fib6_rule_suppress()
|
H A D | route.c | 1385 static bool rt6_is_valid(const struct rt6_info *rt6) in rt6_is_valid() argument 1387 return rt6->sernum == rt_genid_ipv6(dev_net(rt6->dst.dev)); in rt6_is_valid() 1529 struct rt6_info *rt6 = rt6_ex->rt6i; in __rt6_find_exception_spinlock() local 1530 bool matched = ipv6_addr_equal(daddr, &rt6->rt6i_dst.addr); in __rt6_find_exception_spinlock() 1534 matched = ipv6_addr_equal(saddr, &rt6->rt6i_src.addr); in __rt6_find_exception_spinlock() 1564 struct rt6_info *rt6 = rt6_ex->rt6i; in __rt6_find_exception_rcu() local 1565 bool matched = ipv6_addr_equal(daddr, &rt6->rt6i_dst.addr); in __rt6_find_exception_rcu() 1569 matched = ipv6_addr_equal(saddr, &rt6->rt6i_src.addr); in __rt6_find_exception_rcu() 2636 struct rt6_info *rt6; in ip6_route_output_flags() local 2845 struct rt6_info *rt6 = (struct rt6_info *)dst; __ip6_rt_update_pmtu() local 5600 struct rt6_info *rt6 = (struct rt6_info *)dst; rt6_fill_node() local [all...] |
H A D | icmp.c | 425 const struct rt6_info *rt6 = skb_rt6_info(skb); in icmp6_dev() local 430 if (rt6 && rt6->rt6i_idev) in icmp6_dev() 431 dev = rt6->rt6i_idev->dev; in icmp6_dev()
|
/kernel/linux/linux-5.10/net/mpls/ |
H A D | mpls_iptunnel.c | 46 struct rt6_info *rt6 = NULL; in mpls_xmit() local 95 rt6 = (struct rt6_info *)dst; in mpls_xmit() 142 } else if (rt6) { in mpls_xmit() 143 if (ipv6_addr_v4mapped(&rt6->rt6i_gateway)) { in mpls_xmit() 145 err = neigh_xmit(NEIGH_ARP_TABLE, out_dev, &rt6->rt6i_gateway.s6_addr32[3], in mpls_xmit() 148 err = neigh_xmit(NEIGH_ND_TABLE, out_dev, &rt6->rt6i_gateway, in mpls_xmit()
|
/kernel/linux/linux-6.6/net/mpls/ |
H A D | mpls_iptunnel.c | 46 struct rt6_info *rt6 = NULL; in mpls_xmit() local 95 rt6 = (struct rt6_info *)dst; in mpls_xmit() 142 } else if (rt6) { in mpls_xmit() 143 if (ipv6_addr_v4mapped(&rt6->rt6i_gateway)) { in mpls_xmit() 145 err = neigh_xmit(NEIGH_ARP_TABLE, out_dev, &rt6->rt6i_gateway.s6_addr32[3], in mpls_xmit() 148 err = neigh_xmit(NEIGH_ND_TABLE, out_dev, &rt6->rt6i_gateway, in mpls_xmit()
|
/kernel/linux/linux-5.10/drivers/net/ |
H A D | vrf.c | 112 struct rt6_info __rcu *rt6; member 705 struct rt6_info *rt6; in vrf_ip6_out_redirect() local 709 rt6 = rcu_dereference(vrf->rt6); in vrf_ip6_out_redirect() 710 if (likely(rt6)) { in vrf_ip6_out_redirect() 711 dst = &rt6->dst; in vrf_ip6_out_redirect() 806 struct rt6_info *rt6 = rtnl_dereference(vrf->rt6); in vrf_rt6_release() local 810 RCU_INIT_POINTER(vrf->rt6, NULL); in vrf_rt6_release() 816 if (rt6) { in vrf_rt6_release() 830 struct rt6_info *rt6; vrf_rt6_create() local 1318 struct rt6_info *rt6; vrf_ip6_input_dst() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ |
H A D | vrf.c | 114 struct rt6_info __rcu *rt6; member 692 struct rt6_info *rt6; in vrf_ip6_out_redirect() local 696 rt6 = rcu_dereference(vrf->rt6); in vrf_ip6_out_redirect() 697 if (likely(rt6)) { in vrf_ip6_out_redirect() 698 dst = &rt6->dst; in vrf_ip6_out_redirect() 793 struct rt6_info *rt6 = rtnl_dereference(vrf->rt6); in vrf_rt6_release() local 797 RCU_INIT_POINTER(vrf->rt6, NULL); in vrf_rt6_release() 803 if (rt6) { in vrf_rt6_release() 817 struct rt6_info *rt6; vrf_rt6_create() local 1344 struct rt6_info *rt6; vrf_ip6_input_dst() local [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | ip6_route.h | 216 const struct rt6_info *rt6 = NULL; in skb_rt6_info() local 219 rt6 = container_of(dst, struct rt6_info, dst); in skb_rt6_info() 221 return rt6; in skb_rt6_info()
|
H A D | ip6_fib.h | 228 struct rt6_info *rt6; member
|
H A D | xfrm.h | 934 struct rt6_info rt6; member
|
/kernel/linux/linux-6.6/include/net/ |
H A D | ip6_route.h | 213 const struct rt6_info *rt6 = NULL; in skb_rt6_info() local 216 rt6 = container_of(dst, struct rt6_info, dst); in skb_rt6_info() 218 return rt6; in skb_rt6_info()
|
H A D | ip6_fib.h | 229 struct rt6_info *rt6; member
|
H A D | xfrm.h | 952 struct rt6_info rt6; member
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | addr.c | 353 struct rt6_info *rt6; in has_gateway() local 360 rt6 = container_of(dst, struct rt6_info, dst); in has_gateway() 361 return rt6->rt6i_flags & RTF_GATEWAY; in has_gateway()
|
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | addr.c | 352 struct rt6_info *rt6; in has_gateway() local 359 rt6 = container_of(dst, struct rt6_info, dst); in has_gateway() 360 return rt6->rt6i_flags & RTF_GATEWAY; in has_gateway()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | ip_tunnel.c | 530 struct rt6_info *rt6; in tnl_update_pmtu() local 533 rt6 = skb_valid_dst(skb) ? (struct rt6_info *)skb_dst(skb) : in tnl_update_pmtu() 537 if (rt6 && mtu < dst_mtu(skb_dst(skb)) && in tnl_update_pmtu() 540 rt6->rt6i_dst.plen == 128) { in tnl_update_pmtu() 541 rt6->rt6i_flags |= RTF_MODIFIED; in tnl_update_pmtu()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | ip_tunnel.c | 544 struct rt6_info *rt6; in tnl_update_pmtu() local 547 rt6 = skb_valid_dst(skb) ? (struct rt6_info *)skb_dst(skb) : in tnl_update_pmtu() 551 if (rt6 && mtu < dst_mtu(skb_dst(skb)) && in tnl_update_pmtu() 554 rt6->rt6i_dst.plen == 128) { in tnl_update_pmtu() 555 rt6->rt6i_flags |= RTF_MODIFIED; in tnl_update_pmtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_span.c | 527 struct rt6_info *rt6; in mlxsw_sp_span_gretap6_route() local 540 rt6 = container_of(dst, struct rt6_info, dst); in mlxsw_sp_span_gretap6_route() 544 *daddrp = rt6->rt6i_gateway; in mlxsw_sp_span_gretap6_route()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_span.c | 529 struct rt6_info *rt6; in mlxsw_sp_span_gretap6_route() local 542 rt6 = container_of(dst, struct rt6_info, dst); in mlxsw_sp_span_gretap6_route() 546 *daddrp = rt6->rt6i_gateway; in mlxsw_sp_span_gretap6_route()
|
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_policy.c | 2508 path->u.rt6.rt6i_nfheader_len = nfheader_len; in xfrm_init_path()
|