Home
last modified time | relevance | path

Searched refs:servers (Results 1 – 25 of 52) sorted by relevance

123

/packages/modules/DnsResolver/
DDnsStatsTest.cpp146 std::vector<std::string> servers; in TEST_F() member
178 for (const auto& [servers, expectation, isSuccess] : tests) { in TEST_F()
180 ipSockAddrs.reserve(servers.size()); in TEST_F()
181 for (const auto& server : servers) { in TEST_F()
204 const std::vector<IPSockAddr> servers = { in TEST_F() local
212 EXPECT_FALSE(mDnsStats.setServers(servers, PROTO_TCP)); in TEST_F()
213 EXPECT_FALSE(mDnsStats.setServers(servers, PROTO_UDP)); in TEST_F()
214 EXPECT_FALSE(mDnsStats.setServers(servers, PROTO_DOT)); in TEST_F()
221 EXPECT_TRUE(mDnsStats.setServers(std::vector(servers.begin() + 2, servers.end()), PROTO_TCP)); in TEST_F()
222 EXPECT_TRUE(mDnsStats.setServers(std::vector(servers.begin() + 2, servers.end()), PROTO_UDP)); in TEST_F()
[all …]
DResolverController.cpp95 int getDnsInfo(unsigned netId, std::vector<std::string>* servers, std::vector<std::string>* domains, in getDnsInfo() argument
116 servers->clear(); in getDnsInfo()
156 servers->push_back(std::move(server_str)); in getDnsInfo()
234 return resolv_set_nameservers(resolverParams.netId, resolverParams.servers, in setResolverConfiguration()
239 int ResolverController::getResolverInfo(int32_t netId, std::vector<std::string>* servers, in getResolverInfo() argument
248 int ret = getDnsInfo(netId, servers, domains, &res_params, &res_stats, in getResolverInfo()
295 std::vector<std::string> servers; in dump() local
301 int rv = getDnsInfo(netId, &servers, &domains, &params, &stats, in dump()
307 if (servers.empty()) { in dump()
316 for (size_t i = 0; i < servers.size(); ++i) { in dump()
[all …]
Dresolv_cache_unit_test.cpp59 std::vector<std::string> servers; member
205 return resolv_set_nameservers(netId, setup.servers, setup.domains, setup.params, in cacheSetupResolver()
218 sockaddr_storage servers[MAXNS]; in expectCacheStats() local
224 android_net_res_stats_get_info_for_net(netId, &nscount, servers, &dcount, domains, &params, in expectCacheStats()
228 EXPECT_EQ(nscount, static_cast<int>(expected.setup.servers.size())) << msg; in expectCacheStats()
230 EXPECT_EQ(addrToString(&servers[i]), expected.setup.servers[i]) << msg; in expectCacheStats()
625 .servers = {"127.0.0.1", "::127.0.0.2", "fe80::3"}, in TEST_F()
649 .servers = {}, in TEST_F()
657 setup.servers = {"127.0.0.1", server, "127.0.0.2"}; in TEST_F()
667 const std::vector<std::string> servers = {"127.0.0.1", "fe80::1"}; in TEST_F() local
[all …]
DDnsStats.cpp62 bool ensureNoInvalidIp(const std::vector<IPSockAddr>& servers) { in ensureNoInvalidIp() argument
63 for (const auto& server : servers) { in ensureNoInvalidIp()
165 bool DnsStats::setServers(const std::vector<netdutils::IPSockAddr>& servers, Protocol protocol) { in setServers() argument
166 if (!ensureNoInvalidIp(servers)) return false; in setServers()
169 for (const auto& server : servers) { in setServers()
176 for (const auto& server : servers) { in setServers()
DPrivateDnsConfiguration.h42 std::list<DnsTlsServer> servers; in validatedServers() local
46 servers.push_back(pair.first); in validatedServers()
49 return servers; in validatedServers()
55 int set(int32_t netId, uint32_t mark, const std::vector<std::string>& servers,
DPrivateDnsConfiguration.cpp76 const std::vector<std::string>& servers, const std::string& name, in set() argument
79 << ", " << servers.size() << ", " << name << ")"; in set()
83 for (const auto& s : servers) { in set()
143 return resolv_stats_set_servers_for_dot(netId, servers); in set()
DDnsResolverService.cpp194 .args(resolverParams.netId, resolverParams.servers, resolverParams.domains, in setResolverConfiguration()
207 int32_t netId, std::vector<std::string>* servers, std::vector<std::string>* domains, in getResolverInfo() argument
213 int res = gDnsResolv->resolverCtrl.getResolverInfo(netId, servers, domains, tlsServers, params, in getResolverInfo()
Dres_cache.cpp1542 std::vector<std::string> filter_nameservers(const std::vector<std::string>& servers) { in filter_nameservers() argument
1543 std::vector<std::string> res = servers; in filter_nameservers()
1582 int resolv_set_nameservers(unsigned netid, const std::vector<std::string>& servers, in resolv_set_nameservers() argument
1586 std::vector<std::string> nameservers = filter_nameservers(servers); in resolv_set_nameservers()
1727 struct sockaddr_storage servers[MAXNS], int* dcount, in android_net_res_stats_get_info_for_net()
1743 servers[i] = info->nameserverSockAddrs[i]; in android_net_res_stats_get_info_for_net()
1882 int resolv_stats_set_servers_for_dot(unsigned netid, const std::vector<std::string>& servers) { in resolv_stats_set_servers_for_dot() argument
1889 serverSockAddrs.reserve(servers.size()); in resolv_stats_set_servers_for_dot()
1890 for (const auto& server : servers) { in resolv_stats_set_servers_for_dot()
Dresolv_cache.h83 int resolv_set_nameservers(unsigned netid, const std::vector<std::string>& servers,
113 int resolv_stats_set_servers_for_dot(unsigned netid, const std::vector<std::string>& servers);
Dresolv_callback_unit_test.cpp121 const std::vector<std::string> servers = {test::kDefaultListenAddr}; in SetResolvers() local
131 return resolv_set_nameservers(TEST_NETID, servers, domains, params); in SetResolvers()
Dresolv_unit_test.cpp127 return resolv_set_nameservers(TEST_NETID, servers, domains, params); in SetResolvers()
137 const std::vector<std::string> servers = {test::kDefaultListenAddr}; member in android::net::TestBase
1465 EXPECT_EQ(0, resolv_set_nameservers(TEST_NETID, servers, domains, params, resolverOptions, in TEST_F()
1476 EXPECT_EQ(0, resolv_set_nameservers(TEST_NETID + 1, servers, domains, params, resolverOptions, in TEST_F()
1487 EXPECT_EQ(0, resolv_set_nameservers(TEST_NETID, servers, domains, params, resolverOptions, in TEST_F()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp585 std::vector<std::string> servers; in TEST_F() local
588 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(4, mappings, &dns, &servers)); in TEST_F()
592 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, domains, kDefaultParams)); in TEST_F()
616 EXPECT_EQ(servers.size(), res_servers.size()); in TEST_F()
628 EXPECT_EQ(servers.size(), res_stats.size()); in TEST_F()
630 EXPECT_THAT(res_servers, testing::UnorderedElementsAreArray(servers)); in TEST_F()
944 std::vector<std::string> servers = {listen_addr0, listen_addr1}; in TEST_F() local
948 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, kDefaultSearchDomains, params)); in TEST_F()
1039 const std::vector<std::string> servers = {listen_addr0, listen_addr1, listen_addr2}; in TEST_F() local
1042 thread = std::thread([this, &servers]() { in TEST_F()
[all …]
Ddnsresolver_binder_test.cpp206 const std::vector<std::string> servers; in TEST_F() member
234 TEST_NETID, test_params, LOCALLY_ASSIGNED_DNS, {}, td.tlsName, td.servers); in TEST_F()
281 std::vector<std::string> servers = {"127.0.0.1", "127.0.0.2"}; in TEST_F() local
291 TEST_NETID, testParams, servers, domains, "", {}); in TEST_F()
306 EXPECT_EQ(servers.size(), res_servers.size()); in TEST_F()
326 EXPECT_EQ(servers.size(), stats.size()); in TEST_F()
328 EXPECT_THAT(res_servers, testing::UnorderedElementsAreArray(servers)); in TEST_F()
Dresolv_stress_test.cpp46 std::vector<std::string> servers; in RunGetAddrInfoStressTest() local
49 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS, mappings, &dns, &servers)); in RunGetAddrInfoStressTest()
51 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, domains, kDefaultParams)); in RunGetAddrInfoStressTest()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp58 int netId, const std::vector<int>& params, const std::vector<std::string>& servers, in makeResolverParamsParcel() argument
78 paramsParcel.servers = servers; in makeResolverParamsParcel()
94 unsigned netId, std::vector<std::string>* servers, in GetResolverInfo() argument
103 auto rv = dnsResolverService->getResolverInfo(netId, servers, domains, tlsServers, &params32, in GetResolverInfo()
139 bool DnsResponderClient::SetResolversForNetwork(const std::vector<std::string>& servers, in SetResolversForNetwork() argument
143 makeResolverParamsParcel(TEST_NETID, params, servers, domains, "", {}, ""); in SetResolversForNetwork()
148 bool DnsResponderClient::SetResolversWithTls(const std::vector<std::string>& servers, in SetResolversWithTls() argument
153 const auto& resolverParams = makeResolverParamsParcel(TEST_NETID, params, servers, domains, in SetResolversWithTls()
174 std::vector<std::string>* servers) { in SetupDNSServers() argument
177 servers->resize(numServers); in SetupDNSServers()
[all …]
Ddns_responder_client_ndk.h67 bool SetResolversForNetwork(const std::vector<std::string>& servers = kDefaultServers,
72 bool SetResolversWithTls(const std::vector<std::string>& servers, in SetResolversWithTls() argument
77 return SetResolversWithTls(servers, searchDomains, params, servers, name); in SetResolversWithTls()
81 bool SetResolversWithTls(const std::vector<std::string>& servers,
92 unsigned netId, std::vector<std::string>* servers,
103 std::vector<std::string>* servers);
106 int netId, const std::vector<int>& params, const std::vector<std::string>& servers,
/packages/modules/NetworkStack/src/com/android/server/
DNetworkObserverRegistry.java128 public void onInterfaceDnsServerInfo(String ifName, long lifetime, String[] servers) { in onInterfaceDnsServerInfo() argument
129 invokeForAllObservers(o -> o.onInterfaceDnsServerInfo(ifName, lifetime, servers)); in onInterfaceDnsServerInfo()
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/2/android/net/
DResolverParamsParcel.aidl27 @utf8InCpp String[] servers;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/1/android/net/
DResolverParamsParcel.aidl10 @utf8InCpp String[] servers;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/3/android/net/
DResolverParamsParcel.aidl10 @utf8InCpp String[] servers;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/current/android/net/
DResolverParamsParcel.aidl28 @utf8InCpp String[] servers;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/4/android/net/
DResolverParamsParcel.aidl28 @utf8InCpp String[] servers;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/6/android/net/
DResolverParamsParcel.aidl28 @utf8InCpp String[] servers;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/5/android/net/
DResolverParamsParcel.aidl28 @utf8InCpp String[] servers;
/packages/modules/DnsResolver/binder/android/net/
DResolverParamsParcel.aidl65 @utf8InCpp String[] servers;

123