/system/netd/resolv/ |
D | libnetd_resolv_test.cpp | 338 const char* servers[] = {listen_addr}; in TEST_F() local 339 ASSERT_EQ(0, resolv_set_nameservers_for_net(TEST_NETID, servers, in TEST_F() 340 sizeof(servers) / sizeof(servers[0]), in TEST_F() 366 const char* servers[] = {listen_addr}; in TEST_F() local 367 ASSERT_EQ(0, resolv_set_nameservers_for_net(TEST_NETID, servers, in TEST_F() 368 sizeof(servers) / sizeof(servers[0]), in TEST_F() 425 const char* servers[] = {listen_addr}; in TEST_F() local 426 ASSERT_EQ(0, resolv_set_nameservers_for_net(TEST_NETID, servers, in TEST_F() 427 sizeof(servers) / sizeof(servers[0]), in TEST_F() 449 const char* servers[] = {listen_addr}; in TEST_F() local [all …]
|
D | resolver_test.cpp | 110 bool GetResolverInfo(std::vector<std::string>* servers, std::vector<std::string>* domains, in GetResolverInfo() argument 119 TEST_NETID, servers, domains, tlsServers, ¶ms32, &stats32, in GetResolverInfo() 234 std::vector<std::string> servers; in RunGetAddrInfoStressTest_Binder() local 237 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS, mappings, &dns, &servers)); in RunGetAddrInfoStressTest_Binder() 239 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, domains, kDefaultParams)); in RunGetAddrInfoStressTest_Binder() 519 std::vector<std::string> servers; in TEST_F() local 522 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(4, mappings, &dns, &servers)); in TEST_F() 526 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, domains, kDefaultParams)); in TEST_F() 549 EXPECT_EQ(servers.size(), res_servers.size()); in TEST_F() 561 EXPECT_EQ(servers.size(), res_stats.size()); in TEST_F() [all …]
|
D | ResolverController.cpp | 97 int getDnsInfo(unsigned netId, std::vector<std::string>* servers, std::vector<std::string>* domains, in getDnsInfo() argument 118 servers->clear(); in getDnsInfo() 158 servers->push_back(std::move(server_str)); in getDnsInfo() 223 const size_t serverCount = std::min<size_t>(MAXNS, resolverParams.servers.size()); in setResolverConfiguration() 226 server_ptrs.push_back(resolverParams.servers[i].c_str()); in setResolverConfiguration() 247 int ResolverController::getResolverInfo(int32_t netId, std::vector<std::string>* servers, in getResolverInfo() argument 256 int ret = getDnsInfo(netId, servers, domains, &res_params, &res_stats, in getResolverInfo() 305 std::vector<std::string> servers; in dump() local 311 int rv = getDnsInfo(netId, &servers, &domains, ¶ms, &stats, in dump() 317 if (servers.empty()) { in dump() [all …]
|
D | dnsresolver_binder_test.cpp | 106 const std::vector<std::string>& servers, in makeResolverParamsParcel() argument 129 paramsParcel.servers = servers; in makeResolverParamsParcel() 235 const std::vector<std::string> servers; in TEST_F() member 263 test_domains, td.tlsName, td.servers, fingerprints); in TEST_F() 279 std::vector<std::string> servers = {"127.0.0.1", "127.0.0.2"}; in TEST_F() local 289 makeResolverParamsParcel(TEST_NETID, testParams, servers, domains, "", {}, {}); in TEST_F() 304 EXPECT_EQ(servers.size(), res_servers.size()); in TEST_F() 322 EXPECT_EQ(servers.size(), stats.size()); in TEST_F() 324 EXPECT_THAT(res_servers, testing::UnorderedElementsAreArray(servers)); in TEST_F()
|
D | resolv_cache.h | 68 int resolv_set_nameservers_for_net(unsigned netid, const char** servers, int numservers,
|
D | PrivateDnsConfiguration.cpp | 57 const std::vector<std::string>& servers, const std::string& name, in set() argument 60 ALOGD("PrivateDnsConfiguration::set(%u, 0x%x, %zu, %s, %zu)", netId, mark, servers.size(), in set() 68 for (size_t i = 0; i < servers.size(); ++i) { in set() 70 if (!parseServer(servers[i].c_str(), &parsed)) { in set()
|
D | DnsResolverService.cpp | 205 .args(resolverParams.netId, resolverParams.servers, resolverParams.domains, in setResolverConfiguration() 230 int32_t netId, std::vector<std::string>* servers, std::vector<std::string>* domains, in getResolverInfo() argument 236 int res = gDnsResolv->resolverCtrl.getResolverInfo(netId, servers, domains, tlsServers, params, in getResolverInfo()
|
D | ResolverController.h | 51 int getResolverInfo(int32_t netId, std::vector<std::string>* servers,
|
/system/netd/resolv/dns_responder/ |
D | dns_responder_client.h | 60 bool SetResolversForNetwork(const std::vector<std::string>& servers = kDefaultServers, 64 bool SetResolversForNetwork(const std::vector<std::string>& servers, 68 bool SetResolversWithTls(const std::vector<std::string>& servers, in SetResolversWithTls() argument 75 return SetResolversWithTls(servers, searchDomains, params, in SetResolversWithTls() 76 servers, name, fingerprints); in SetResolversWithTls() 79 bool SetResolversWithTls(const std::vector<std::string>& servers, 88 std::vector<std::string>* servers);
|
D | dns_responder_client.cpp | 53 int netId, const std::vector<int>& params, const std::vector<std::string>& servers, in makeResolverParamsParcel() argument 75 paramsParcel.servers = servers; in makeResolverParamsParcel() 84 bool DnsResponderClient::SetResolversForNetwork(const std::vector<std::string>& servers, in SetResolversForNetwork() argument 87 makeResolverParamsParcel(TEST_NETID, params, servers, domains, "", {}, {}); in SetResolversForNetwork() 92 bool DnsResponderClient::SetResolversWithTls(const std::vector<std::string>& servers, in SetResolversWithTls() argument 96 const auto& resolverParams = makeResolverParamsParcel(TEST_NETID, params, servers, domains, in SetResolversWithTls() 105 std::vector<std::string>* servers) { in SetupDNSServers() argument 108 servers->resize(num_servers); in SetupDNSServers() 110 auto& server = (*servers)[i]; in SetupDNSServers()
|
/system/netd/tests/benchmarks/ |
D | dns_benchmark.cpp | 67 std::vector<std::string> servers; in SetUp() local 70 dns.SetupDNSServers(MAXNS, mappings, &mDns, &servers); in SetUp() 73 dns.SetResolversForNetwork(servers, domains, mDefaultParams_Binder); in SetUp()
|
/system/netd/server/ |
D | NetlinkHandler.cpp | 177 const char *servers = evt->findParam("SERVERS"); in onEvent() local 178 if (lifetime && servers) { in onEvent() 180 android::base::Split(servers, ",")); in onEvent() 272 const std::vector<std::string>& servers) { in notifyInterfaceDnsServers() argument 273 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceDnsServerInfo, ifName, lifetime, servers); in notifyInterfaceDnsServers()
|
D | TetherController.cpp | 350 int TetherController::setDnsForwarders(unsigned netId, char **servers, int numServers) { in setDnsForwarders() argument 361 ALOGD("setDnsForwarders(0x%x %d = '%s')", fwmark.intValue, i, servers[i]); in setDnsForwarders() 364 int ret = getaddrinfo(servers[i], nullptr, &hints, &res); in setDnsForwarders() 367 ALOGE("Failed to parse DNS server '%s'", servers[i]); in setDnsForwarders() 373 if (daemonCmd.size() + 1 + strlen(servers[i]) >= MAX_CMD_SIZE) { in setDnsForwarders() 379 daemonCmd += servers[i]; in setDnsForwarders() 380 mDnsForwarders.push_back(servers[i]); in setDnsForwarders() 395 int TetherController::setDnsForwarders(unsigned netId, const std::vector<std::string>& servers) { in setDnsForwarders() argument 396 auto dnsServers = toCstrVec(servers); in setDnsForwarders()
|
D | TetherController.h | 82 int setDnsForwarders(unsigned netId, char **servers, int numServers); 83 int setDnsForwarders(unsigned netId, const std::vector<std::string>& servers);
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_helper | 4 …| CLIENT32_SERVER64] configures whether to run 32-bit or 64-bit versions of the servers and client" 28 echo "Running $1-bit client with $2-bit servers" 34 failed_test_cases+=("$1-bit client with $2-bit servers")
|
/system/netd/resolv/aidl/dnsresolver/1/android/net/ |
D | ResolverParamsParcel.aidl | 10 @utf8InCpp String[] servers;
|
D | IDnsResolver.aidl | 6 …void getResolverInfo(int netId, out @utf8InCpp String[] servers, out @utf8InCpp String[] domains, … in getResolverInfo() argument
|
/system/netd/resolv/aidl/dnsresolver/2/android/net/ |
D | ResolverParamsParcel.aidl | 27 @utf8InCpp String[] servers;
|
D | IDnsResolver.aidl | 23 …void getResolverInfo(int netId, out @utf8InCpp String[] servers, out @utf8InCpp String[] domains, … in getResolverInfo() argument
|
/system/netd/resolv/binder/android/net/ |
D | ResolverParamsParcel.aidl | 63 @utf8InCpp String[] servers;
|
D | IDnsResolver.aidl | 100 void getResolverInfo(int netId, out @utf8InCpp String[] servers, in getResolverInfo() argument
|
/system/netd/resolv/include/netd_resolv/ |
D | stats.h | 53 unsigned netid, int* nscount, sockaddr_storage servers[MAXNS], int* dcount,
|
/system/netd/server/binder/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 63 @utf8InCpp String ifName, long lifetimeS, in @utf8InCpp String[] servers); in onInterfaceDnsServerInfo() argument
|
/system/netd/tests/ |
D | TestUnsolService.cpp | 97 const std::vector<std::string>& servers) { in onInterfaceDnsServerInfo() argument 99 lifetime, base::Join(servers, ", ").c_str())); in onInterfaceDnsServerInfo()
|
/system/netd/server/aidl/netd/1/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 5 …onInterfaceDnsServerInfo(@utf8InCpp String ifName, long lifetimeS, in @utf8InCpp String[] servers); in onInterfaceDnsServerInfo() argument
|