Lines Matching refs:routes
438 void serialize_dhcp_routes(FILE *f, const char *key, sd_dhcp_route **routes, size_t size) {
443 assert(routes);
452 assert_se(sd_dhcp_route_get_destination(routes[i], &dest) >= 0);
453 assert_se(sd_dhcp_route_get_gateway(routes[i], &gw) >= 0);
454 assert_se(sd_dhcp_route_get_destination_prefix_length(routes[i], &length) >= 0);
464 _cleanup_free_ struct sd_dhcp_route *routes = NULL;
481 if (!GREEDY_REALLOC(routes, allocated, size + 1))
496 r = inet_aton(tok, &routes[size].dst_addr);
513 routes[size].dst_prefixlen = (uint8_t) n;
517 r = inet_aton(tok, &routes[size].gw_addr);
526 *ret = routes;
527 routes = NULL;