Home
last modified time | relevance | path

Searched refs:nservers (Results 1 – 15 of 15) sorted by relevance

/third_party/node/deps/cares/src/lib/
Dares_init.c73 static int config_nameserver(struct server_state **servers, int *nservers,
96 x->nservers > -1 && \
138 channel->nservers = -1; in ares_init_options()
245 if ((channel->flags & ARES_FLAG_PRIMARY) && channel->nservers > 1) in ares_init_options()
246 channel->nservers = 1; in ares_init_options()
298 for (i = 0; i < src->nservers; i++) in ares_dup()
368 if (channel->nservers) { in ares_save_options()
369 for (i = 0; i < channel->nservers; i++) in ares_save_options()
380 for (i = j = 0; i < channel->nservers; i++) in ares_save_options()
391 options->nservers = ipv4_nservers; in ares_save_options()
[all …]
Dares_send.c42 if (channel->nservers < 1) in ares_send()
61 query->server_info = ares_malloc(channel->nservers * in ares_send()
97 channel->last_server = (channel->last_server + 1) % channel->nservers; in ares_send()
99 for (i = 0; i < channel->nservers; i++) in ares_send()
Dares_options.c43 for (i = 0; i < channel->nservers; i++) in ares_get_servers()
98 for (i = 0; i < channel->nservers; i++) in ares_get_servers_ports()
174 channel->nservers = num_srvrs; in ares_set_servers()
226 channel->nservers = num_srvrs; in ares_set_servers_ports()
Dares_destroy.c111 for (i = 0; i < channel->nservers; i++) in ares__destroy_servers_state()
120 channel->nservers = -1; in ares__destroy_servers_state()
Dares_process.c228 for (i = 0; i < channel->nservers; i++) in write_tcp_data()
381 for (i = 0; i < channel->nservers; i++) in read_tcp_data()
488 for (i = 0; i < channel->nservers; i++) in read_udp_packets()
692 for (i = 0; i < channel->nservers; i++) in process_broken_connections()
773 if (channel->nservers > 1) in skip_server()
786 while (++(query->try_count) < (channel->nservers * channel->tries)) in next_server()
791 query->server = (query->server + 1) % channel->nservers; in next_server()
899 const int shift = query->try_count / channel->nservers; in ares__send_query()
1477 for (i = 0; i < channel->nservers; i++) in end_query()
1534 for (i = 0; i < channel->nservers; i++) in end_query()
Dares_fds.c33 for (i = 0; i < channel->nservers; i++) in ares_fds()
Dares_getsock.c33 for (i = 0; i < channel->nservers; i++) in ares_getsock()
Dares_cancel.c59 for (i = 0; i < channel->nservers; i++) in ares_cancel()
Dares_private.h295 int nservers; member
/third_party/cares/
D0001-ADD-OHOS-DNS-PROXY-BY-NETSYS.patch105 + status_each = config_nameserver(&servers, &nservers, config.nameservers[i]);
111 + if (status == ARES_SUCCESS && nservers > 0) {
Dbackport-001-CVE-2023-31147.patch198 @@ -87,7 +76,6 @@ static int config_nameserver(struct server_state **servers, int *nservers,
/third_party/cares/include/
Dares.h269 int nservers; member
/third_party/node/deps/cares/include/
Dares.h278 int nservers; member
/third_party/node/deps/cares/src/tools/
Dadig.c185 options.nservers = 0; in main()
/third_party/node/deps/cares/
DCHANGES134 When the condition channel->nservers < 1 holds, the function returns
138 channel->nservers < 1 holds.
2208 timeplus = channel->timeout << (query->try_count / channel->nservers);
2245 sanity check was added in ares_send() to ensure nservers >= 1 or