Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DResolverController.cpp94 sockaddr_storage res_servers[MAXNS]; in getDnsInfo()
97 res_stats res_stats[MAXNS]; in getDnsInfo()
114 if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { in getDnsInfo()
120 bool valid_servers[MAXNS]; in getDnsInfo()
121 std::fill_n(valid_servers, MAXNS, false); in getDnsInfo()
199 if (tlsServers.size() > MAXNS) { in setResolverConfiguration()
200 tlsServers.resize(MAXNS); in setResolverConfiguration()
Dstats.h50 sockaddr_storage servers[MAXNS], int* dcount,
52 res_params* params, res_stats stats[MAXNS],
Dres_cache.cpp1030 res_stats nsstats[MAXNS]{};
1580 if (res.size() > MAXNS) { in filter_nameservers()
1582 res.resize(MAXNS); in filter_nameservers()
1746 for (int i = 0; i < MAXNS; ++i) { in res_cache_clear_stats_locked()
1759 struct sockaddr_storage servers[MAXNS], int* dcount, in android_net_res_stats_get_info_for_net() argument
1761 res_params* params, struct res_stats stats[MAXNS], in android_net_res_stats_get_info_for_net() argument
1768 if (num > MAXNS) { in android_net_res_stats_get_info_for_net()
1769 LOG(INFO) << __func__ << ": nscount " << num << " > MAXNS " << MAXNS; in android_net_res_stats_get_info_for_net()
1827 int resolv_cache_get_resolver_stats(unsigned netid, res_params* params, res_stats stats[MAXNS], in resolv_cache_get_resolver_stats() argument
1836 if (j >= MAXNS) { in resolv_cache_get_resolver_stats()
[all …]
Dparams.h21 #define MAXNS 4 // max # name servers we'll track macro
Dresolv_cache.h119 unsigned netid, res_params* params, res_stats stats[MAXNS],
Dresolv_private.h135 android::base::unique_fd nssocks[MAXNS]; // UDP sockets to nameservers
Dres_send.cpp485 res_stats stats[MAXNS]{}; in res_nsend()
493 bool usable_servers[MAXNS]; in res_nsend()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp217 sockaddr_storage servers[MAXNS]; in expectCacheStats()
220 res_stats stats[MAXNS]; in expectCacheStats()
712 .setup = {.servers = std::vector(servers.begin(), servers.begin() + MAXNS), in TEST_F()
854 const res_stats expectedStats[MAXNS] = { in TEST_F()
879 res_stats cacheStats[MAXNS]{}; in TEST_F()
884 for (size_t i = 0; i < MAXNS; i++) { in TEST_F()
889 const res_stats expectedStats2[MAXNS] = { in TEST_F()
904 for (size_t i = 0; i < MAXNS; i++) { in TEST_F()
Dresolv_stress_test.cpp49 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS, mappings, &dns, &servers)); in RunGetAddrInfoStressTest()
Dresolv_integration_test.cpp1663 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS + 1, mappings, &dns, &servers)); in TEST_F()
1673 for (int i = 0; i < MAXNS; i++) { in TEST_F()
1690 EXPECT_EQ(static_cast<size_t>(MAXNS), res_servers.size()); in TEST_F()
1691 EXPECT_EQ(static_cast<size_t>(MAXNS), res_tls_servers.size()); in TEST_F()
1693 EXPECT_TRUE(std::equal(servers.begin(), servers.begin() + MAXNS, res_servers.begin())); in TEST_F()
1694 EXPECT_TRUE(std::equal(servers.begin(), servers.begin() + MAXNS, res_tls_servers.begin())); in TEST_F()