Lines Matching refs:nh
344 static void route_apply_nexthop(Route *route, const NextHop *nh, uint8_t nh_weight) { in route_apply_nexthop() argument
346 assert(nh); in route_apply_nexthop()
347 assert(hashmap_isempty(nh->group)); in route_apply_nexthop()
349 route->gw_family = nh->family; in route_apply_nexthop()
350 route->gw = nh->gw; in route_apply_nexthop()
355 if (nh->blackhole) in route_apply_nexthop()
454 NextHop *nh; in route_convert() local
456 r = manager_get_nexthop_by_id(manager, route->nexthop_id, &nh); in route_convert()
460 if (hashmap_isempty(nh->group)) { in route_convert()
469 route_apply_nexthop(c->routes[0], nh, UINT8_MAX); in route_convert()
470 c->links[0] = nh->link; in route_convert()
476 r = converted_routes_new(hashmap_size(nh->group), &c); in route_convert()
481 HASHMAP_FOREACH(nhg, nh->group) { in route_convert()
1263 NextHop *nh; in route_is_ready_to_configure() local
1265 if (manager_get_nexthop_by_id(link->manager, route->nexthop_id, &nh) < 0) in route_is_ready_to_configure()
1268 if (!nexthop_exists(nh)) in route_is_ready_to_configure()
1271 HASHMAP_FOREACH(nhg, nh->group) { in route_is_ready_to_configure()