Lines Matching defs:route
438 struct sd_dhcp_route *route = *routes + *routes_size;
441 r = in_addr_default_prefixlen((struct in_addr*) option, &route->dst_prefixlen);
448 route->dst_addr = inet_makeaddr(inet_netof(addr), 0);
451 assert_se(lease_parse_be32(option, 4, &route->gw_addr.s_addr) >= 0);
478 struct sd_dhcp_route *route;
483 route = *routes + *routes_size;
486 route->dst_prefixlen = *option;
494 route->dst_addr.s_addr = 0;
495 memcpy(&route->dst_addr.s_addr, option, dst_octets);
502 assert_se(lease_parse_be32(option, 4, &route->gw_addr.s_addr) >= 0);
1156 int sd_dhcp_route_get_destination(sd_dhcp_route *route, struct in_addr *destination) {
1157 assert_return(route, -EINVAL);
1160 *destination = route->dst_addr;
1164 int sd_dhcp_route_get_destination_prefix_length(sd_dhcp_route *route, uint8_t *length) {
1165 assert_return(route, -EINVAL);
1168 *length = route->dst_prefixlen;
1172 int sd_dhcp_route_get_gateway(sd_dhcp_route *route, struct in_addr *gateway) {
1173 assert_return(route, -EINVAL);
1176 *gateway = route->gw_addr;