Lines Matching refs:addr
37 #include "in-addr-util.h"
44 int sd_dhcp_lease_get_address(sd_dhcp_lease *lease, struct in_addr *addr) {
46 assert_return(addr, -EINVAL);
51 addr->s_addr = lease->address;
55 int sd_dhcp_lease_get_broadcast(sd_dhcp_lease *lease, struct in_addr *addr) {
57 assert_return(addr, -EINVAL);
62 addr->s_addr = lease->broadcast;
110 int sd_dhcp_lease_get_dns(sd_dhcp_lease *lease, const struct in_addr **addr) {
112 assert_return(addr, -EINVAL);
117 *addr = lease->dns;
121 int sd_dhcp_lease_get_ntp(sd_dhcp_lease *lease, const struct in_addr **addr) {
123 assert_return(addr, -EINVAL);
128 *addr = lease->ntp;
165 int sd_dhcp_lease_get_router(sd_dhcp_lease *lease, struct in_addr *addr) {
167 assert_return(addr, -EINVAL);
172 addr->s_addr = lease->router;
176 int sd_dhcp_lease_get_netmask(sd_dhcp_lease *lease, struct in_addr *addr) {
178 assert_return(addr, -EINVAL);
183 addr->s_addr = lease->subnet_mask;
187 int sd_dhcp_lease_get_server_identifier(sd_dhcp_lease *lease, struct in_addr *addr) {
189 assert_return(addr, -EINVAL);
194 addr->s_addr = lease->server_address;
198 int sd_dhcp_lease_get_next_server(sd_dhcp_lease *lease, struct in_addr *addr) {
200 assert_return(addr, -EINVAL);
205 addr->s_addr = lease->next_server;
421 struct in_addr addr;
447 assert_se(lease_parse_be32(option, 4, &addr.s_addr) >= 0);
448 route->dst_addr = inet_makeaddr(inet_netof(addr), 0);