Lines Matching refs:rnh

1032 	struct radix_node_head *rnh = rt_tables[dst->sa_family];  in rtalloc1_common_locked()  local
1040 if (rnh == NULL) { in rtalloc1_common_locked()
1055 rt = rt_lookup(FALSE, dst, NULL, rnh, ifscope); in rtalloc1_common_locked()
1208 struct radix_node_head *rnh; in rtfree_common() local
1270 rnh = rt_tables[rt_key(rt)->sa_family]; in rtfree_common()
1280 if (rnh != NULL && rnh->rnh_close != NULL) { in rtfree_common()
1281 rnh->rnh_close(RN(rt), rnh); in rtfree_common()
1874 struct radix_node_head *rnh; member
1923 struct radix_node_head *rnh; in rtrequest_common_locked() local
1949 if ((rnh = rt_tables[af]) == NULL) { in rtrequest_common_locked()
2024 if ((rn = rnh->rnh_deladdr(dst, netmask, rnh)) == NULL) { in rtrequest_common_locked()
2084 rnh->rnh_walktree_from(rnh, dst, rt_mask(rt), in rtrequest_common_locked()
2093 (void) rnh->rnh_walktree(rnh, in rtrequest_common_locked()
2355 rn = rnh->rnh_addaddr(ndst_bytes, netmask_bytes, rnh, rt->rt_nodes); in rtrequest_common_locked()
2383 rn = rnh->rnh_addaddr(ndst_bytes, netmask_bytes, rnh, rt->rt_nodes); in rtrequest_common_locked()
2524 arg.rnh = rnh; in rtrequest_common_locked()
2527 rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt), in rtrequest_common_locked()
2620 struct radix_node_head *rnh = ap->rnh; in rt_fixchange() local
2660 for (i = rnh->rnh_treetop->rn_offset; i < mlen; i++) { in rt_fixchange()
2668 for (i = rnh->rnh_treetop->rn_offset; i < len; i++) { in rt_fixchange()
2724 struct radix_node_head *rnh = NULL; in rt_setgate() local
2731 rnh = rt_tables[dst->sa_family]; in rt_setgate()
2978 arg.rnh = rnh; in rt_setgate()
2981 rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt), in rt_setgate()
3080 struct radix_node_head *rnh; in node_lookup() local
3092 rnh = rt_tables[af]; in node_lookup()
3109 rn = rnh->rnh_lookup_args(dst, netmask, rnh, f, w); in node_lookup()
3123 struct radix_node_head *rnh; in node_lookup_default() local
3126 rnh = rt_tables[af]; in node_lookup_default()
3128 return af == AF_INET ? rnh->rnh_lookup(&sin_def, NULL, rnh) : in node_lookup_default()
3129 rnh->rnh_lookup(&sin6_def, NULL, rnh); in node_lookup_default()
3182 struct sockaddr *netmask, struct radix_node_head *rnh, unsigned int ifscope) in rt_lookup_common() argument
3214 rn = rnh->rnh_matchaddr(dst, rnh); in rt_lookup_common()
3456 struct radix_node_head *rnh, unsigned int ifscope) in rt_lookup() argument
3459 rnh, ifscope); in rt_lookup()
3464 struct sockaddr *netmask, struct radix_node_head *rnh) in rt_lookup_coarse() argument
3467 rnh, IFSCOPE_NONE); in rt_lookup_coarse()
3511 struct radix_node_head *rnh; in rtinit_locked() local
3558 if ((rnh = rt_tables[dst->sa_family]) == NULL) { in rtinit_locked()
3586 rt = rt_lookup_coarse(TRUE, dst, NULL, rnh); in rtinit_locked()
3865 struct radix_node_head *rnh = rt_tables[rt_key(rt)->sa_family]; in rt_set_proxy() local
3874 if (rnh != NULL && rt_mask(rt)) { in rt_set_proxy()
3875 rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt), in rt_set_proxy()