Lines Matching full:nh
233 struct nhop_object *nh; in rib_lookup() local
235 nh = NULL; in rib_lookup()
242 nh = fib4_lookup(fibnum, a->sin_addr, 0, flags, flowid); in rib_lookup()
250 nh = fib6_lookup(fibnum, &a->sin6_addr, a->sin6_scope_id, in rib_lookup()
257 return (nh); in rib_lookup()
265 rc->rc_nh_new = wn_src->nh; in notify_add()
270 FIB_NH_LOG(LOG_DEBUG2, wn_src->nh, "RTM_ADD for %s @ w=%u", in notify_add()
271 nhop_print_buf(wn_src->nh, nhbuf, sizeof(nhbuf)), in notify_add()
281 rc->rc_nh_old = wn_src->nh; in notify_del()
286 FIB_NH_LOG(LOG_DEBUG2, wn_src->nh, "RTM_DEL for %s @ w=%u", in notify_del()
287 nhop_print_buf(wn_src->nh, nhbuf, sizeof(nhbuf)), in notify_del()
308 tmp.nh = rc->rc_nh_old; in decompose_change_notification()
316 tmp.nh = rc->rc_nh_new; in decompose_change_notification()
325 FIB_NH_LOG(LOG_DEBUG, wn_old[0].nh, "change %s -> %s", buf_old, buf_new); in decompose_change_notification()
342 uint32_t nh_idx_old = wn_old[idx_old].nh->nh_priv->nh_idx; in decompose_change_notification()
343 uint32_t nh_idx_new = wn_new[idx_new].nh->nh_priv->nh_idx; in decompose_change_notification()
456 struct nhop_object *nh = nhop_alloc(fibnum, family); in rib_add_default_route() local
457 if (nh == NULL) in rib_add_default_route()
460 nhop_set_gw(nh, gw, true); in rib_add_default_route()
461 nhop_set_transmit_ifp(nh, ifp); in rib_add_default_route()
462 nhop_set_src(nh, ifa); in rib_add_default_route()
463 nhop_set_pxtype_flag(nh, NHF_DEFAULT); in rib_add_default_route()
464 rnd.rnd_nhop = nhop_get_nhop(nh, &error); in rib_add_default_route()