Lines Matching refs:rnh
634 struct rib_head *rnh; in handle_rtm_get() local
640 rnh = rt_tables_get_rnh(fibnum, saf); in handle_rtm_get()
641 if (rnh == NULL) in handle_rtm_get()
644 RIB_RLOCK(rnh); in handle_rtm_get()
659 rc->rc_rt = (struct rtentry *) rnh->rnh_matchaddr( in handle_rtm_get()
660 info->rti_info[RTAX_DST], &rnh->head); in handle_rtm_get()
662 rc->rc_rt = (struct rtentry *) rnh->rnh_lookup( in handle_rtm_get()
664 info->rti_info[RTAX_NETMASK], &rnh->head); in handle_rtm_get()
667 RIB_RUNLOCK(rnh); in handle_rtm_get()
673 RIB_RUNLOCK(rnh); in handle_rtm_get()
703 rc->rc_rt = (struct rtentry *)rnh->rnh_matchaddr(&laddr, in handle_rtm_get()
704 &rnh->head); in handle_rtm_get()
706 RIB_RUNLOCK(rnh); in handle_rtm_get()
711 RIB_RUNLOCK(rnh); in handle_rtm_get()
717 RIB_RUNLOCK(rnh); in handle_rtm_get()
1241 struct rib_head *rnh;
1403 rnh = rt_tables_get_rnh(fibnum, saf);
1404 if (rnh == NULL)
1407 RIB_RLOCK(rnh);
1416 rt = (struct rtentry *) rnh->rnh_matchaddr(
1417 info.rti_info[RTAX_DST], &rnh->head);
1419 rt = (struct rtentry *) rnh->rnh_lookup(
1421 info.rti_info[RTAX_NETMASK], &rnh->head);
1424 RIB_RUNLOCK(rnh);
1436 if (rt_mpath_capable(rnh) &&
1440 RIB_RUNLOCK(rnh);
1471 rt = (struct rtentry *)rnh->rnh_matchaddr(&laddr,
1472 &rnh->head);
1474 RIB_RUNLOCK(rnh);
1480 RIB_RUNLOCK(rnh);