Searched refs:fib6_nh (Results 1 – 7 of 7) sorted by relevance
/net/ipv6/ |
D | route.c | 107 static int rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif, 442 if (fl6->mp_hash <= atomic_read(&match->fib6_nh->fib_nh_upper_bound)) in fib6_select_path() 447 const struct fib6_nh *nh = sibling->fib6_nh; in fib6_select_path() 461 res->nh = match->fib6_nh; in fib6_select_path() 468 static bool __rt6_device_match(struct net *net, const struct fib6_nh *nh, in __rt6_device_match() 494 struct fib6_nh *nh; 497 static int __rt6_nh_dev_match(struct fib6_nh *nh, void *_arg) in __rt6_nh_dev_match() 507 static struct fib6_nh *rt6_nh_dev_match(struct net *net, struct nexthop *nh, in rt6_nh_dev_match() 533 struct fib6_nh *nh; in rt6_device_match() 541 nh = f6i->fib6_nh; in rt6_device_match() [all …]
|
D | ip6_fib.c | 153 sz += sizeof(struct fib6_nh); in fib6_info_alloc() 175 fib6_nh_release(f6i->fib6_nh); in fib6_info_destroy_rcu() 955 static void __fib6_drop_pcpu_from(struct fib6_nh *fib6_nh, in __fib6_drop_pcpu_from() argument 961 if (!fib6_nh->rt6i_pcpu) in __fib6_drop_pcpu_from() 972 ppcpu_rt = per_cpu_ptr(fib6_nh->rt6i_pcpu, cpu); in __fib6_drop_pcpu_from() 997 static int fib6_nh_drop_pcpu_from(struct fib6_nh *nh, void *_arg) in fib6_nh_drop_pcpu_from() 1023 struct fib6_nh *fib6_nh; in fib6_drop_pcpu_from() local 1025 fib6_nh = f6i->fib6_nh; in fib6_drop_pcpu_from() 1026 __fib6_drop_pcpu_from(fib6_nh, f6i, table); in fib6_drop_pcpu_from() 2492 struct fib6_nh *fib6_nh = rt->fib6_nh; in ipv6_route_native_seq_show() local [all …]
|
D | addrconf_core.c | 180 static int eafnosupport_fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh, in eafnosupport_fib6_nh_init() argument
|
D | ndisc.c | 1359 neigh = ip6_neigh_lookup(&rt->fib6_nh->fib_nh_gw6, in ndisc_router_discovery() 1360 rt->fib6_nh->fib_nh_dev, NULL, in ndisc_router_discovery() 1395 neigh = ip6_neigh_lookup(&rt->fib6_nh->fib_nh_gw6, in ndisc_router_discovery() 1396 rt->fib6_nh->fib_nh_dev, NULL, in ndisc_router_discovery()
|
D | addrconf.c | 2502 if (rt->fib6_nh->fib_nh_dev->ifindex != dev->ifindex) in addrconf_get_prefix_route() 2504 if (no_gw && rt->fib6_nh->fib_nh_gw_family) in addrconf_get_prefix_route() 6624 struct fib6_nh *nh = ifa->rt->fib6_nh; in addrconf_disable_policy_idev()
|
/net/ipv4/ |
D | nexthop.c | 499 ipv6_stub->fib6_nh_release(&nhi->fib6_nh); in nexthop_free_single() 697 struct fib6_nh *fib6_nh; in nh_fill_node() local 754 fib6_nh = &nhi->fib6_nh; in nh_fill_node() 755 if (fib6_nh->fib_nh_gw_family && in nh_fill_node() 756 nla_put_in6_addr(skb, NHA_GATEWAY, &fib6_nh->fib_nh_gw6)) in nh_fill_node() 815 if (nhi->fib6_nh.fib_nh_gw_family) in nh_nlmsg_size_single() 1123 static bool ipv6_good_nh(const struct fib6_nh *nh) in ipv6_good_nh() 1164 return ipv6_good_nh(&nhi->fib6_nh); in nexthop_is_good_nh() 1251 int (*cb)(struct fib6_nh *nh, void *arg), in nexthop_for_each_fib6_nh() 1266 err = cb(&nhi->fib6_nh, arg); in nexthop_for_each_fib6_nh() [all …]
|
D | fib_semantics.c | 1060 struct fib6_nh fib6_nh = {}; in fib_check_nh_v6_gw() local 1063 err = ipv6_stub->fib6_nh_init(net, &fib6_nh, &cfg, GFP_KERNEL, extack); in fib_check_nh_v6_gw() 1065 nh->fib_nh_dev = fib6_nh.fib_nh_dev; in fib_check_nh_v6_gw() 1071 ipv6_stub->fib6_nh_release(&fib6_nh); in fib_check_nh_v6_gw()
|