Searched refs:nservers (Results 1 – 15 of 15) sorted by relevance
73 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 …]
42 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()
43 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()
111 for (i = 0; i < channel->nservers; i++) in ares__destroy_servers_state()120 channel->nservers = -1; in ares__destroy_servers_state()
228 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()
33 for (i = 0; i < channel->nservers; i++) in ares_fds()
33 for (i = 0; i < channel->nservers; i++) in ares_getsock()
59 for (i = 0; i < channel->nservers; i++) in ares_cancel()
295 int nservers; member
105 + status_each = config_nameserver(&servers, &nservers, config.nameservers[i]);111 + if (status == ARES_SUCCESS && nservers > 0) {
198 @@ -87,7 +76,6 @@ static int config_nameserver(struct server_state **servers, int *nservers,
269 int nservers; member
278 int nservers; member
185 options.nservers = 0; in main()
134 When the condition channel->nservers < 1 holds, the function returns138 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