Searched refs:MAXNS (Results 1 – 12 of 12) sorted by relevance
/system/netd/resolv/ |
D | resolv_private.h | 93 struct sockaddr_in nsaddr_list[MAXNS]; /* address of name server */ 114 uint16_t nstimes[MAXNS]; /* ms. */ 115 int nssocks[MAXNS]; 128 int resolv_cache_get_resolver_stats(unsigned netid, res_params* params, res_stats stats[MAXNS]);
|
D | ResolverController.cpp | 114 sockaddr_storage res_servers[MAXNS]; in getDnsInfo() 117 res_stats res_stats[MAXNS]; in getDnsInfo() 134 if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { in getDnsInfo() 140 bool valid_servers[MAXNS]; in getDnsInfo() 141 std::fill_n(valid_servers, MAXNS, false); in getDnsInfo() 213 if (tlsServers.size() > MAXNS) { in setResolverConfiguration() 214 tlsServers.resize(MAXNS); in setResolverConfiguration() 223 const size_t serverCount = std::min<size_t>(MAXNS, resolverParams.servers.size()); in setResolverConfiguration()
|
D | res_state_ext.h | 10 sockaddr_union nsaddrs[MAXNS];
|
D | res_cache.cpp | 1141 char* nameservers[MAXNS]; 1142 struct addrinfo* nsaddrinfo[MAXNS]; 1145 struct res_stats nsstats[MAXNS]; 1726 struct addrinfo* nsaddrinfo[MAXNS]; in resolv_set_nameservers_for_net() 1728 if (numservers > MAXNS) { in resolv_set_nameservers_for_net() 1729 LOG(ERROR) << __func__ << ": numservers=" << numservers << ", MAXNS=" << MAXNS; in resolv_set_nameservers_for_net() 1880 for (nserv = 0; nserv < MAXNS; nserv++) { in _resolv_populate_res_for_net() 1933 for (int i = 0; i < MAXNS; ++i) { in res_cache_clear_stats_locked() 1940 struct sockaddr_storage servers[MAXNS], int* dcount, in android_net_res_stats_get_info_for_net() argument 1942 res_params* params, struct res_stats stats[MAXNS], in android_net_res_stats_get_info_for_net() argument [all …]
|
D | PrivateDnsConfiguration.h | 51 } serverStatus[MAXNS];
|
D | PrivateDnsConfiguration.cpp | 157 if (count >= MAXNS) break; // Lose the rest in getStatus()
|
D | res_init.cpp | 313 for (i = 0; i < cnt && nserv < MAXNS; i++) { in res_setservers()
|
D | resolver_test.cpp | 237 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS, mappings, &dns, &servers)); in RunGetAddrInfoStressTest_Binder() 1093 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS + 1, mappings, &dns, &servers)); in TEST_F() 1102 for (int i = 0; i < MAXNS; i++) { in TEST_F() 1118 EXPECT_EQ(static_cast<size_t>(MAXNS), res_servers.size()); in TEST_F() 1119 EXPECT_EQ(static_cast<size_t>(MAXNS), res_tls_servers.size()); in TEST_F() 1121 EXPECT_TRUE(std::equal(servers.begin(), servers.begin() + MAXNS, res_servers.begin())); in TEST_F() 1122 EXPECT_TRUE(std::equal(servers.begin(), servers.begin() + MAXNS, res_tls_servers.begin())); in TEST_F()
|
D | res_send.cpp | 496 res_stats stats[MAXNS]; in res_nsend() 504 bool usable_servers[MAXNS]; in res_nsend()
|
/system/netd/resolv/include/netd_resolv/ |
D | stats.h | 53 unsigned netid, int* nscount, sockaddr_storage servers[MAXNS], int* dcount, 54 char domains[MAXDNSRCH][MAXDNSRCHPATH], res_params* params, res_stats stats[MAXNS],
|
D | params.h | 22 #define MAXNS 4 // max # name servers we'll track macro
|
/system/netd/tests/benchmarks/ |
D | dns_benchmark.cpp | 70 dns.SetupDNSServers(MAXNS, mappings, &mDns, &servers); in SetUp()
|