Searched refs:dns1 (Results 1 - 8 of 8) sorted by relevance

/system/core/include/netutils/
H A Ddhcp.h30 char *dns1,
H A Difc.h70 in_addr_t dns1, in_addr_t dns2);
/system/netd/
H A DPppController.h35 struct in_addr remote, struct in_addr dns1,
H A DPppController.cpp52 struct in_addr remote, struct in_addr dns1,
82 char *d1 = strdup(inet_ntoa(dns1));
51 attachPppd(const char *tty, struct in_addr local, struct in_addr remote, struct in_addr dns1, struct in_addr dns2) argument
H A DCommandListener.cpp782 struct in_addr l, r, dns1, dns2; local
784 memset(&dns1, sizeof(struct in_addr), 0);
795 if ((argc > 3) && (!inet_aton(argv[5], &dns1))) {
796 cli->sendMsg(ResponseCode::CommandParameterError, "Invalid dns1 address", false);
803 rc = sPppCtrl->attachPppd(argv[2], l, r, dns1, dns2);
890 } else if (!strcmp(argv[1], "setifdns")) { // "resolver setifdns <iface> <dns1> <dns2> ..."
/system/core/libnetutils/
H A Ddhcp_utils.c38 * or for filling up system properties dhcpcd.<interface>.ipaddress, dhcpcd.<interface>.dns1
91 char *dns1,
141 snprintf(prop_name, sizeof(prop_name), "%s.%s.dns1", DHCP_PROP_NAME_PREFIX, p2p_interface);
142 property_get(prop_name, dns1, NULL);
180 char *dns1,
236 dns1, dns2, server, lease, vendorInfo) == -1) {
242 snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns1", interface);
243 property_set(dns_prop_name, *dns1 ? ipaddr_to_string(*dns1) : "");
330 char *dns1,
87 fill_ip_info(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns1, char *dns2, char *server, uint32_t *lease, char *vendorInfo) argument
176 dhcp_do_request(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns1, char *dns2, char *server, uint32_t *lease, char *vendorInfo) argument
326 dhcp_do_request_renew(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns1, char *dns2, char *server, uint32_t *lease, char *vendorInfo) argument
[all...]
H A Ddhcpclient.c107 uint32_t dns1; member in struct:dhcp_info
117 uint32_t *dns1, uint32_t *dns2, uint32_t *server,
123 *dns1 = last_good_info.dns1;
133 info->dns1, info->dns2);
159 if (info->dns1) ALOGD("dns1: %s", ipaddr(info->dns1));
210 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4);
116 get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, uint32_t *dns1, uint32_t *dns2, uint32_t *server, uint32_t *lease) argument
H A Difc_utils.c782 in_addr_t dns1,
812 snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns1", ifname);
813 property_set(dns_prop_name, dns1 ? ipaddr_to_string(dns1) : "");
778 ifc_configure(const char *ifname, in_addr_t address, uint32_t prefixLength, in_addr_t gateway, in_addr_t dns1, in_addr_t dns2) argument

Completed in 77 milliseconds