Home
last modified time | relevance | path

Searched refs:addrV4 (Results 1 – 7 of 7) sorted by relevance

/third_party/node/deps/cares/src/lib/
Dares_options.c65 memcpy(&srvr_curr->addrV4, &channel->servers[i].addr.addrV4, in ares_get_servers()
66 sizeof(srvr_curr->addrV4)); in ares_get_servers()
122 memcpy(&srvr_curr->addrV4, &channel->servers[i].addr.addrV4, in ares_get_servers_ports()
123 sizeof(srvr_curr->addrV4)); in ares_get_servers_ports()
182 memcpy(&channel->servers[i].addr.addrV4, &srvr->addrV4, in ares_set_servers()
183 sizeof(srvr->addrV4)); in ares_set_servers()
234 memcpy(&channel->servers[i].addr.addrV4, &srvr->addrV4, in ares_set_servers_ports()
235 sizeof(srvr->addrV4)); in ares_set_servers_ports()
Dares_gethostbyaddr.c69 if ((family == AF_INET && addrlen != sizeof(aquery->addr.addrV4)) || in ares_gethostbyaddr()
84 memcpy(&aquery->addr.addrV4, addr, sizeof(aquery->addr.addrV4)); in ares_gethostbyaddr()
142 addrlen = sizeof(aquery->addr.addrV4); in addr_callback()
143 status = ares_parse_ptr_reply(abuf, alen, &aquery->addr.addrV4, in addr_callback()
238 if (memcmp((*host)->h_addr, &addr->addrV4, in file_lookup()
239 sizeof(addr->addrV4)) == 0) in file_lookup()
262 unsigned long laddr = ntohl(addr->addrV4.s_addr); in ptr_rr_name()
Dares__get_hostent.c138 addr.addrV4.s_addr = INADDR_NONE; in ares__get_hostent()
141 if (ares_inet_pton(AF_INET, txtaddr, &addr.addrV4) > 0) in ares__get_hostent()
145 addrlen = sizeof(addr.addrV4); in ares__get_hostent()
188 memcpy(hostent->h_addr_list[0], &addr.addrV4, sizeof(addr.addrV4)); in ares__get_hostent()
Dares_init.c370 &channel->servers[i].addr.addrV4, in ares_save_options()
371 sizeof(channel->servers[i].addr.addrV4)); in ares_save_options()
475 memcpy(&channel->servers[i].addr.addrV4, in init_by_options()
477 sizeof(channel->servers[i].addr.addrV4)); in init_by_options()
913 if (ares_inet_pton(AF_INET, txtaddr, &namesrvr.addrV4) == 1) in get_DNS_NetworkParams()
915 if ((namesrvr.addrV4.S_un.S_addr == INADDR_ANY) || in get_DNS_NetworkParams()
916 (namesrvr.addrV4.S_un.S_addr == INADDR_NONE)) in get_DNS_NetworkParams()
1503 pserver->addr.addrV4.s_addr = addr_in->sin_addr.s_addr; in init_by_resolv_conf()
1567 servers[i].addr.addrV4.s_addr = htonl(def_nameservers[i]); in init_by_resolv_conf()
1915 channel->servers[0].addr.addrV4.s_addr = htonl(INADDR_LOOPBACK); in init_by_defaults()
[all …]
Dares_gethostbyname.c161 == sortlist[i].addrV4.s_addr) in get_address_index()
166 if (!ares__bitncmp(&addr->s_addr, &sortlist[i].addrV4.s_addr, in get_address_index()
Dares_process.c1059 memcpy(&saddr.sa4.sin_addr, &server->addr.addrV4, in open_tcp_socket()
1060 sizeof(server->addr.addrV4)); in open_tcp_socket()
1172 memcpy(&saddr.sa4.sin_addr, &server->addr.addrV4, in open_udp_socket()
1173 sizeof(server->addr.addrV4)); in open_udp_socket()
1333 addr1 = &aa->addrV4; in same_address()
1335 if (memcmp(addr1, addr2, sizeof(aa->addrV4)) == 0) in same_address()
Dares_private.h148 #define addrV4 addr.addr4 macro