Lines Matching refs:addr

34 int sd_dhcp_lease_get_address(sd_dhcp_lease *lease, struct in_addr *addr) {  in sd_dhcp_lease_get_address()  argument
36 assert_return(addr, -EINVAL); in sd_dhcp_lease_get_address()
41 addr->s_addr = lease->address; in sd_dhcp_lease_get_address()
45 int sd_dhcp_lease_get_broadcast(sd_dhcp_lease *lease, struct in_addr *addr) { in sd_dhcp_lease_get_broadcast() argument
47 assert_return(addr, -EINVAL); in sd_dhcp_lease_get_broadcast()
52 addr->s_addr = lease->broadcast; in sd_dhcp_lease_get_broadcast()
103 const struct in_addr **addr) { in sd_dhcp_lease_get_servers() argument
112 if (addr) in sd_dhcp_lease_get_servers()
113 *addr = lease->servers[what].addr; in sd_dhcp_lease_get_servers()
118 int sd_dhcp_lease_get_dns(sd_dhcp_lease *lease, const struct in_addr **addr) { in sd_dhcp_lease_get_dns() argument
119 return sd_dhcp_lease_get_servers(lease, SD_DHCP_LEASE_DNS, addr); in sd_dhcp_lease_get_dns()
121 int sd_dhcp_lease_get_ntp(sd_dhcp_lease *lease, const struct in_addr **addr) { in sd_dhcp_lease_get_ntp() argument
122 return sd_dhcp_lease_get_servers(lease, SD_DHCP_LEASE_NTP, addr); in sd_dhcp_lease_get_ntp()
124 int sd_dhcp_lease_get_sip(sd_dhcp_lease *lease, const struct in_addr **addr) { in sd_dhcp_lease_get_sip() argument
125 return sd_dhcp_lease_get_servers(lease, SD_DHCP_LEASE_SIP, addr); in sd_dhcp_lease_get_sip()
127 int sd_dhcp_lease_get_pop3(sd_dhcp_lease *lease, const struct in_addr **addr) { in sd_dhcp_lease_get_pop3() argument
128 return sd_dhcp_lease_get_servers(lease, SD_DHCP_LEASE_POP3, addr); in sd_dhcp_lease_get_pop3()
130 int sd_dhcp_lease_get_smtp(sd_dhcp_lease *lease, const struct in_addr **addr) { in sd_dhcp_lease_get_smtp() argument
131 return sd_dhcp_lease_get_servers(lease, SD_DHCP_LEASE_SMTP, addr); in sd_dhcp_lease_get_smtp()
133 int sd_dhcp_lease_get_lpr(sd_dhcp_lease *lease, const struct in_addr **addr) { in sd_dhcp_lease_get_lpr() argument
134 return sd_dhcp_lease_get_servers(lease, SD_DHCP_LEASE_LPR, addr); in sd_dhcp_lease_get_lpr()
170 int sd_dhcp_lease_get_router(sd_dhcp_lease *lease, const struct in_addr **addr) { in sd_dhcp_lease_get_router() argument
172 assert_return(addr, -EINVAL); in sd_dhcp_lease_get_router()
177 *addr = lease->router; in sd_dhcp_lease_get_router()
181 int sd_dhcp_lease_get_netmask(sd_dhcp_lease *lease, struct in_addr *addr) { in sd_dhcp_lease_get_netmask() argument
183 assert_return(addr, -EINVAL); in sd_dhcp_lease_get_netmask()
188 addr->s_addr = lease->subnet_mask; in sd_dhcp_lease_get_netmask()
192 int sd_dhcp_lease_get_server_identifier(sd_dhcp_lease *lease, struct in_addr *addr) { in sd_dhcp_lease_get_server_identifier() argument
194 assert_return(addr, -EINVAL); in sd_dhcp_lease_get_server_identifier()
199 addr->s_addr = lease->server_address; in sd_dhcp_lease_get_server_identifier()
203 int sd_dhcp_lease_get_next_server(sd_dhcp_lease *lease, struct in_addr *addr) { in sd_dhcp_lease_get_next_server() argument
205 assert_return(addr, -EINVAL); in sd_dhcp_lease_get_next_server()
210 addr->s_addr = lease->next_server; in sd_dhcp_lease_get_next_server()
326 free(lease->servers[i].addr); in dhcp_lease_free()
671 …r = lease_parse_in_addrs(option, len, &lease->servers[SD_DHCP_LEASE_DNS].addr, &lease->servers[SD_… in dhcp_lease_parse_options()
677 …r = lease_parse_in_addrs(option, len, &lease->servers[SD_DHCP_LEASE_NTP].addr, &lease->servers[SD_… in dhcp_lease_parse_options()
683 …r = lease_parse_sip_server(option, len, &lease->servers[SD_DHCP_LEASE_SIP].addr, &lease->servers[S… in dhcp_lease_parse_options()
689 …r = lease_parse_in_addrs(option, len, &lease->servers[SD_DHCP_LEASE_POP3].addr, &lease->servers[SD… in dhcp_lease_parse_options()
695 …r = lease_parse_in_addrs(option, len, &lease->servers[SD_DHCP_LEASE_SMTP].addr, &lease->servers[SD… in dhcp_lease_parse_options()
701 …r = lease_parse_in_addrs(option, len, &lease->servers[SD_DHCP_LEASE_LPR].addr, &lease->servers[SD_… in dhcp_lease_parse_options()
1282 r = deserialize_in_addrs(&lease->servers[SD_DHCP_LEASE_DNS].addr, dns); in dhcp_lease_load()
1290 r = deserialize_in_addrs(&lease->servers[SD_DHCP_LEASE_NTP].addr, ntp); in dhcp_lease_load()
1298 r = deserialize_in_addrs(&lease->servers[SD_DHCP_LEASE_SIP].addr, sip); in dhcp_lease_load()
1306 r = deserialize_in_addrs(&lease->servers[SD_DHCP_LEASE_POP3].addr, pop3); in dhcp_lease_load()
1314 r = deserialize_in_addrs(&lease->servers[SD_DHCP_LEASE_SMTP].addr, smtp); in dhcp_lease_load()
1322 r = deserialize_in_addrs(&lease->servers[SD_DHCP_LEASE_LPR].addr, lpr); in dhcp_lease_load()