Lines Matching refs:rn

895 rn_match_ifscope(struct radix_node *rn, void *arg)  in rn_match_ifscope()  argument
897 rtentry_ref_t rt = RT(rn); in rn_match_ifscope()
1922 struct radix_node *rn; in rtrequest_common_locked() local
2024 if ((rn = rnh->rnh_deladdr(dst, netmask, rnh)) == NULL) { in rtrequest_common_locked()
2027 if (rn->rn_flags & (RNF_ACTIVE | RNF_ROOT)) { in rtrequest_common_locked()
2031 rt = RT(rn); in rtrequest_common_locked()
2355 rn = rnh->rnh_addaddr(ndst_bytes, netmask_bytes, rnh, rt->rt_nodes); in rtrequest_common_locked()
2356 if (rn == 0) { in rtrequest_common_locked()
2383 rn = rnh->rnh_addaddr(ndst_bytes, netmask_bytes, rnh, rt->rt_nodes); in rtrequest_common_locked()
2394 if (rn == NULL) { in rtrequest_common_locked()
2578 rt_fixdelete(struct radix_node *rn, void *vp) in rt_fixdelete() argument
2580 rtentry_ref_t rt = RT(rn); in rt_fixdelete()
2615 rt_fixchange(struct radix_node *rn, void *vp) in rt_fixchange() argument
2617 rtentry_ref_t rt = RT(rn); in rt_fixchange()
3081 struct radix_node *rn; in node_lookup() local
3109 rn = rnh->rnh_lookup_args(dst, netmask, rnh, f, w); in node_lookup()
3110 if (rn != NULL && (rn->rn_flags & RNF_ROOT)) { in node_lookup()
3111 rn = NULL; in node_lookup()
3114 return rn; in node_lookup()
3184 struct radix_node *rn0, *rn = NULL; in rt_lookup_common() local
3214 rn = rnh->rnh_matchaddr(dst, rnh); in rt_lookup_common()
3221 if (rn != NULL && (rn->rn_flags & RNF_ROOT)) { in rt_lookup_common()
3222 rn = NULL; in rt_lookup_common()
3224 if (rn != NULL) { in rt_lookup_common()
3225 RT_LOCK_SPIN(RT(rn)); in rt_lookup_common()
3226 if (!(RT(rn)->rt_flags & RTF_CONDEMNED)) { in rt_lookup_common()
3227 RT_ADDREF_LOCKED(RT(rn)); in rt_lookup_common()
3228 RT_UNLOCK(RT(rn)); in rt_lookup_common()
3230 RT_UNLOCK(RT(rn)); in rt_lookup_common()
3231 rn = NULL; in rt_lookup_common()
3234 return RT(rn); in rt_lookup_common()
3277 rn0 = rn = node_lookup(dst, netmask, IFSCOPE_NONE); in rt_lookup_common()
3302 if (rn != NULL) { in rt_lookup_common()
3303 rtentry_ref_t rt = RT(rn); in rt_lookup_common()
3327 rn = NULL; in rt_lookup_common()
3342 rn = NULL; in rt_lookup_common()
3352 if (rn == NULL) { in rt_lookup_common()
3353 rn = node_lookup(dst, netmask, ifscope); in rt_lookup_common()
3355 if (rt_verbose > 2 && rn != NULL) { in rt_lookup_common()
3357 rtentry_ref_t rt = RT(rn); in rt_lookup_common()
3381 if (rn == NULL || coarse || (rn0 != NULL && in rt_lookup_common()
3382 ((SA_DEFAULT(rt_key(RT(rn))) && !SA_DEFAULT(rt_key(RT(rn0)))) || in rt_lookup_common()
3383 (!RT_HOST(RT(rn)) && RT_HOST(RT(rn0)))))) { in rt_lookup_common()
3384 rn = rn0; in rt_lookup_common()
3391 if (rn == NULL && (rn = node_lookup_default(af)) != NULL && in rt_lookup_common()
3392 RT(rn)->rt_ifp->if_index != ifscope) { in rt_lookup_common()
3393 rn = NULL; in rt_lookup_common()
3396 if (rn != NULL) { in rt_lookup_common()
3404 RT_LOCK_SPIN(RT(rn)); in rt_lookup_common()
3405 if (rt_validate(RT(rn))) { in rt_lookup_common()
3406 RT_ADDREF_LOCKED(RT(rn)); in rt_lookup_common()
3407 RT_UNLOCK(RT(rn)); in rt_lookup_common()
3409 RT_UNLOCK(RT(rn)); in rt_lookup_common()
3410 rn = NULL; in rt_lookup_common()
3414 if (rn == NULL) { in rt_lookup_common()
3439 rtentry_ref_t rt = RT(rn); in rt_lookup_common()
3451 return RT(rn); in rt_lookup_common()
4599 route_event_walktree(struct radix_node *rn, void *arg) in route_event_walktree() argument
4602 rtentry_ref_t rt = RT(rn); in route_event_walktree()