Searched refs:nservers (Results 1 – 16 of 16) sorted by relevance
76 static int config_nameserver(struct server_state **servers, int *nservers,100 x->nservers > -1 && \156 channel->nservers = -1; in ares_init_options()253 if ((channel->flags & ARES_FLAG_PRIMARY) && channel->nservers > 1) in ares_init_options()254 channel->nservers = 1; in ares_init_options()306 for (i = 0; i < src->nservers; i++) in ares_dup()373 if (channel->nservers) { in ares_save_options()374 for (i = 0; i < channel->nservers; i++) in ares_save_options()385 for (i = j = 0; i < channel->nservers; i++) in ares_save_options()396 options->nservers = ipv4_nservers; in ares_save_options()[all …]
63 if (channel->nservers < 1) in ares_send()69 query->server_info = ares_malloc(channel->nservers * in ares_send()105 channel->last_server = (channel->last_server + 1) % channel->nservers; in ares_send()107 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()
103 for (i = 0; i < channel->nservers; i++) in ares__destroy_servers_state()112 channel->nservers = -1; in ares__destroy_servers_state()
222 for (i = 0; i < channel->nservers; i++) in write_tcp_data()373 for (i = 0; i < channel->nservers; i++) in read_tcp_data()480 for (i = 0; i < channel->nservers; i++) in read_udp_packets()676 for (i = 0; i < channel->nservers; i++) in process_broken_connections()757 if (channel->nservers > 1) in skip_server()770 while (++(query->try_count) < (channel->nservers * channel->tries)) in next_server()775 query->server = (query->server + 1) % channel->nservers; in next_server()883 const int shift = query->try_count / channel->nservers; in ares__send_query()1389 for (i = 0; i < channel->nservers; i++) in end_query()1446 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()
290 int nservers; member
265 int nservers; member
207 options.nservers = 0; in main()
1722 { uint32_t nservers, j; in vldb_reply_print() local1727 nservers = GET_BE_U_4(bp); in vldb_reply_print()1729 ND_PRINT(" %u", nservers); in vldb_reply_print()1733 if (i < nservers) in vldb_reply_print()1741 if (i < nservers && j <= 26) in vldb_reply_print()1743 else if (i < nservers) in vldb_reply_print()1770 { uint32_t nservers, j; in vldb_reply_print() local1773 nservers = GET_BE_U_4(bp); in vldb_reply_print()1775 ND_PRINT(" %u", nservers); in vldb_reply_print()1779 if (i < nservers) in vldb_reply_print()[all …]
76 opts.nservers = 2; in TEST_F()77 opts.servers = (struct in_addr *)malloc(opts.nservers * sizeof(struct in_addr)); in TEST_F()111 EXPECT_EQ(1, opts2.nservers); // Truncated by ARES_FLAG_PRIMARY in TEST_F()162 opts.nservers = 2; in TEST_F()163 opts.servers = (struct in_addr *)malloc(opts.nservers * sizeof(struct in_addr)); in TEST_F()
408 int saved = channel_->nservers; in TEST_F()409 channel_->nservers = -1; in TEST_F()413 channel_->nservers = saved; in TEST_F()
49981 unsigned int nservers; member