Lines Matching refs:routes
137 void serialize_dhcp_routes(FILE *f, const char *key, sd_dhcp_route **routes, size_t size) { in serialize_dhcp_routes() argument
140 assert(routes); in serialize_dhcp_routes()
150 assert_se(sd_dhcp_route_get_destination(routes[i], &dest) >= 0); in serialize_dhcp_routes()
151 assert_se(sd_dhcp_route_get_gateway(routes[i], &gw) >= 0); in serialize_dhcp_routes()
152 assert_se(sd_dhcp_route_get_destination_prefix_length(routes[i], &length) >= 0); in serialize_dhcp_routes()
162 _cleanup_free_ struct sd_dhcp_route *routes = NULL; in deserialize_dhcp_routes() local
182 if (!GREEDY_REALLOC(routes, size + 1)) in deserialize_dhcp_routes()
193 r = inet_aton(tok, &routes[size].dst_addr); in deserialize_dhcp_routes()
210 routes[size].dst_prefixlen = (uint8_t) n; in deserialize_dhcp_routes()
214 r = inet_aton(tok, &routes[size].gw_addr); in deserialize_dhcp_routes()
222 *ret = TAKE_PTR(routes); in deserialize_dhcp_routes()