Home
last modified time | relevance | path

Searched refs:nameserverSockAddrs (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/
Dres_cache.cpp1006 int nameserverCount() { return nameserverSockAddrs.size(); } in nameserverCount()
1027 std::vector<IPSockAddr> nameserverSockAddrs; member
1652 netconfig->nameserverSockAddrs = std::move(ipSockAddrs); in resolv_set_nameservers()
1669 if (!netconfig->dnsStats.setServers(netconfig->nameserverSockAddrs, PROTO_TCP) || in resolv_set_nameservers()
1670 !netconfig->dnsStats.setServers(netconfig->nameserverSockAddrs, PROTO_UDP)) { in resolv_set_nameservers()
1705 netconfig->nameserverSockAddrs.clear(); in free_nameservers_locked()
1722 : info->nameserverSockAddrs; in resolv_populate_res_for_net()
1775 servers[i] = info->nameserverSockAddrs[i]; in android_net_res_stats_get_info_for_net()
1834 for (size_t j = 0; j < info->nameserverSockAddrs.size(); j++) { in resolv_cache_get_resolver_stats()
1845 if (info->nameserverSockAddrs[j] == serverSockAddrs[i]) { in resolv_cache_get_resolver_stats()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp859 std::vector<IPSockAddr> nameserverSockAddrs = { in TEST_F() local
872 cacheAddStats(TEST_NETID, revision_id, nameserverSockAddrs[0], sample1, in TEST_F()
874 cacheAddStats(TEST_NETID, revision_id, nameserverSockAddrs[1], sample2, in TEST_F()
876 cacheAddStats(TEST_NETID, revision_id, nameserverSockAddrs[2], sample3, in TEST_F()
881 EXPECT_EQ(resolv_cache_get_resolver_stats(TEST_NETID, &params, cacheStats, nameserverSockAddrs), in TEST_F()
894 nameserverSockAddrs = { in TEST_F()
899 cacheAddStats(TEST_NETID, revision_id, nameserverSockAddrs[0], sample2, in TEST_F()
901 EXPECT_EQ(resolv_cache_get_resolver_stats(TEST_NETID, &params, cacheStats, nameserverSockAddrs), in TEST_F()