Lines Matching refs:routes
101 set_remove(route->link->routes, route); in route_free()
104 set_remove(route->manager->routes, route); in route_free()
273 r = set_ensure_put(&manager->routes, &route_hash_ops, route); in route_add()
283 r = set_ensure_put(&link->routes, &route_hash_ops, route); in route_add()
304 route = set_get(manager->routes, in); in route_get()
309 route = set_get(link->routes, in); in route_get()
390 Route **routes; member
399 route_free(c->routes[i]); in converted_routes_free()
401 free(c->routes); in converted_routes_free()
411 _cleanup_free_ Route **routes = NULL; in converted_routes_new() local
417 routes = new0(Route*, n); in converted_routes_new()
418 if (!routes) in converted_routes_new()
431 .routes = TAKE_PTR(routes), in converted_routes_new()
465 r = route_dup(route, &c->routes[0]); in route_convert()
469 route_apply_nexthop(c->routes[0], nh, UINT8_MAX); in route_convert()
488 r = route_dup(route, &c->routes[i]); in route_convert()
492 route_apply_nexthop(c->routes[i], h, nhg->weight); in route_convert()
512 r = route_dup(route, &c->routes[i]); in route_convert()
516 route_apply_multipath_route(c->routes[i], m); in route_convert()
534 SET_FOREACH(route, link->routes) { in link_mark_routes()
786 SET_FOREACH(route, manager->routes) { in manager_mark_routes()
831 if (route_get(manager, NULL, converted->routes[i], &existing) >= 0) in manager_mark_routes()
843 SET_FOREACH(route, manager->routes) { in manager_drop_marked_routes()
882 SET_FOREACH(route, w->routes) in link_unmark_wireguard_routes()
895 SET_FOREACH(route, link->routes) { in link_drop_foreign_routes()
933 if (route_get(NULL, link, converted->routes[i], &existing) >= 0) in link_drop_foreign_routes()
940 SET_FOREACH(route, link->routes) { in link_drop_foreign_routes()
964 SET_FOREACH(route, link->routes) { in link_drop_managed_routes()
995 SET_FOREACH(route, link->routes) in link_foreignize_routes()
1000 SET_FOREACH(route, link->manager->routes) { in link_foreignize_routes()
1258 if (set_size(link->routes) >= routes_max()) in route_is_ready_to_configure()
1338 … if (route_get(link->manager, converted->links[i] ?: link, converted->routes[i], &existing) < 0) { in route_process_request()
1341 r = route_dup(converted->routes[i], &tmp); in route_process_request()
1351 existing->source = converted->routes[i]->source; in route_process_request()
1352 existing->provider = converted->routes[i]->provider; in route_process_request()
1365 …sert_se(route_get(link->manager, converted->links[i] ?: link, converted->routes[i], &existing) >= … in route_process_request()
1491 SET_FOREACH(route, w->routes) { in link_request_wireguard_routes()
1877 TAKE_PTR(converted->routes[i]), in manager_rtnl_process_route()