Lines Matching refs:nh
647 struct nhop_object *nh = NULL; in lookup_route() local
657 nh = cache_route(fibnum, sin6_next, ron, flowid); in lookup_route()
663 if (nh != NULL && (nh->nh_flags & NHF_GATEWAY) != 0) in lookup_route()
664 nh = NULL; in lookup_route()
666 nh = cache_route(fibnum, dst, ro, flowid); in lookup_route()
667 if (nh == NULL) in lookup_route()
676 if (nh->nh_aifp->if_index != pi->ipi6_ifindex) in lookup_route()
677 nh = NULL; in lookup_route()
681 return (nh); in lookup_route()
735 struct nhop_object *nh = lookup_route(fibnum, dstsock, ro, opts, flowid); in selectroute() local
736 if (nh != NULL) { in selectroute()
737 *retifp = nh->nh_aifp; in selectroute()
744 *retnh = nh; in selectroute()
771 struct nhop_object *nh = NULL; in in6_selectif() local
779 error = selectroute(dstsock, opts, mopts, &sro, retifp, &nh, 1, fibnum, 0); in in6_selectif()
781 if (nh != NULL) in in6_selectif()
782 nh_flags = nh->nh_flags; in in6_selectif()
783 if (nh != NULL && nh == sro.ro_nh) in in6_selectif()
784 NH_FREE(nh); in in6_selectif()
850 struct nhop_object *nh; in in6_selecthlim() local
857 nh = fib6_lookup(fibnum, &dst, scopeid, 0, 0); in in6_selecthlim()
858 if (nh != NULL) { in in6_selecthlim()
859 hlim = ND_IFINFO(nh->nh_ifp)->chlim; in in6_selecthlim()