Home
last modified time | relevance | path

Searched refs:MAXNS (Results 1 – 12 of 12) sorted by relevance

/system/netd/resolv/
Dresolv_private.h93 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]);
DResolverController.cpp114 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()
Dres_state_ext.h10 sockaddr_union nsaddrs[MAXNS];
Dres_cache.cpp1141 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 …]
DPrivateDnsConfiguration.h51 } serverStatus[MAXNS];
DPrivateDnsConfiguration.cpp157 if (count >= MAXNS) break; // Lose the rest in getStatus()
Dres_init.cpp313 for (i = 0; i < cnt && nserv < MAXNS; i++) { in res_setservers()
Dresolver_test.cpp237 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()
Dres_send.cpp496 res_stats stats[MAXNS]; in res_nsend()
504 bool usable_servers[MAXNS]; in res_nsend()
/system/netd/resolv/include/netd_resolv/
Dstats.h53 unsigned netid, int* nscount, sockaddr_storage servers[MAXNS], int* dcount,
54 char domains[MAXDNSRCH][MAXDNSRCHPATH], res_params* params, res_stats stats[MAXNS],
Dparams.h22 #define MAXNS 4 // max # name servers we'll track macro
/system/netd/tests/benchmarks/
Ddns_benchmark.cpp70 dns.SetupDNSServers(MAXNS, mappings, &mDns, &servers); in SetUp()