Home
last modified time | relevance | path

Searched refs:rt6 (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/net/ipv6/
Dxfrm6_policy.c79 xdst->u.rt6.rt6i_idev = in6_dev_get(dev); in xfrm6_fill_dst()
80 if (!xdst->u.rt6.rt6i_idev) { in xfrm6_fill_dst()
87 xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST | in xfrm6_fill_dst()
90 xdst->u.rt6.rt6i_gateway = rt->rt6i_gateway; in xfrm6_fill_dst()
91 xdst->u.rt6.rt6i_dst = rt->rt6i_dst; in xfrm6_fill_dst()
92 xdst->u.rt6.rt6i_src = rt->rt6i_src; in xfrm6_fill_dst()
93 INIT_LIST_HEAD(&xdst->u.rt6.rt6i_uncached); in xfrm6_fill_dst()
94 rt6_uncached_list_add(&xdst->u.rt6); in xfrm6_fill_dst()
123 if (likely(xdst->u.rt6.rt6i_idev)) in xfrm6_dst_destroy()
124 in6_dev_put(xdst->u.rt6.rt6i_idev); in xfrm6_dst_destroy()
[all …]
Dfib6_rules.c110 if (res.rt6) in fib6_rule_lookup()
111 return &res.rt6->dst; in fib6_rule_lookup()
255 res->rt6 = rt; in __fib6_rule_action()
274 struct rt6_info *rt = res->rt6; in fib6_rule_suppress()
Droute.c1382 static bool rt6_is_valid(const struct rt6_info *rt6) in rt6_is_valid() argument
1384 return rt6->sernum == rt_genid_ipv6(dev_net(rt6->dst.dev)); in rt6_is_valid()
1526 struct rt6_info *rt6 = rt6_ex->rt6i; in __rt6_find_exception_spinlock() local
1527 bool matched = ipv6_addr_equal(daddr, &rt6->rt6i_dst.addr); in __rt6_find_exception_spinlock()
1531 matched = ipv6_addr_equal(saddr, &rt6->rt6i_src.addr); in __rt6_find_exception_spinlock()
1561 struct rt6_info *rt6 = rt6_ex->rt6i; in __rt6_find_exception_rcu() local
1562 bool matched = ipv6_addr_equal(daddr, &rt6->rt6i_dst.addr); in __rt6_find_exception_rcu()
1566 matched = ipv6_addr_equal(saddr, &rt6->rt6i_src.addr); in __rt6_find_exception_rcu()
2513 struct rt6_info *rt6; in ip6_route_output_flags() local
2517 rt6 = (struct rt6_info *)dst; in ip6_route_output_flags()
[all …]
Dicmp.c430 const struct rt6_info *rt6 = skb_rt6_info(skb); in icmp6_dev() local
432 if (rt6) in icmp6_dev()
433 dev = rt6->rt6i_idev->dev; in icmp6_dev()
/kernel/linux/linux-5.10/net/mpls/
Dmpls_iptunnel.c46 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/
Dvrf.c112 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()
817 dst = &rt6->dst; in vrf_rt6_release()
830 struct rt6_info *rt6; in vrf_rt6_create() local
[all …]
/kernel/linux/linux-5.10/include/net/
Dip6_route.h216 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()
Dip6_fib.h228 struct rt6_info *rt6; member
Dxfrm.h934 struct rt6_info rt6; member
/kernel/linux/linux-5.10/drivers/infiniband/core/
Daddr.c353 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-5.10/net/ipv4/
Dip_tunnel.c517 struct rt6_info *rt6; in tnl_update_pmtu() local
520 rt6 = skb_valid_dst(skb) ? (struct rt6_info *)skb_dst(skb) : in tnl_update_pmtu()
524 if (rt6 && mtu < dst_mtu(skb_dst(skb)) && in tnl_update_pmtu()
527 rt6->rt6i_dst.plen == 128) { in tnl_update_pmtu()
528 rt6->rt6i_flags |= RTF_MODIFIED; in tnl_update_pmtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.c527 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-5.10/net/xfrm/
Dxfrm_policy.c2510 path->u.rt6.rt6i_nfheader_len = nfheader_len; in xfrm_init_path()