Home
last modified time | relevance | path

Searched refs:nh (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/network/
Dnetworkd-nexthop.c207 NextHop *nh; in manager_get_nexthop_by_id() local
214 nh = hashmap_get(manager->nexthops_by_id, UINT32_TO_PTR(id)); in manager_get_nexthop_by_id()
215 if (!nh) in manager_get_nexthop_by_id()
219 *ret = nh; in manager_get_nexthop_by_id()
619 NextHop *nh; in link_request_static_nexthops() local
627 HASHMAP_FOREACH(nh, link->network->nexthops_by_section) { in link_request_static_nexthops()
628 if (only_ipv4 && nh->family != AF_INET) in link_request_static_nexthops()
631 r = link_request_nexthop(link, nh); in link_request_static_nexthops()
1000 static int nexthop_section_verify(NextHop *nh) { in nexthop_section_verify() argument
1001 if (section_is_invalid(nh->section)) in nexthop_section_verify()
[all …]
Dnetworkd-route.c344 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()
[all …]