Home
last modified time | relevance | path

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

/system/netd/server/
DResolverController.cpp47 const char** servers, int numservers, const __res_params* params) { in setDnsServers() argument
51 return -_resolv_set_nameservers_for_net(netId, servers, numservers, searchDomains, params); in setDnsServers()
72 int ResolverController::getDnsInfo(unsigned netId, std::vector<std::string>* servers, in getDnsInfo() argument
91 servers->clear(); in getDnsInfo()
128 servers->push_back(std::move(server_str)); in getDnsInfo()
144 const std::vector<std::string>& servers, const std::vector<std::string>& domains, in setResolverConfiguration() argument
152 auto server_count = std::min<size_t>(MAXNS, servers.size()); in setResolverConfiguration()
155 server_ptrs.push_back(servers[i].c_str()); in setResolverConfiguration()
176 int ResolverController::getResolverInfo(int32_t netId, std::vector<std::string>* servers, in getResolverInfo() argument
183 int ret = getDnsInfo(netId, servers, domains, &res_params, &res_stats); in getResolverInfo()
[all …]
DResolverController.h39 int setDnsServers(unsigned netId, const char* searchDomains, const char** servers,
46 int getDnsInfo(unsigned netId, std::vector<std::string>* servers,
52 int setResolverConfiguration(int32_t netId, const std::vector<std::string>& servers,
55 int getResolverInfo(int32_t netId, std::vector<std::string>* servers,
DTetherController.cpp245 int TetherController::setDnsForwarders(unsigned netId, char **servers, int numServers) { in setDnsForwarders() argument
260 ALOGD("setDnsForwarders(0x%x %d = '%s')", fwmark.intValue, i, servers[i]); in setDnsForwarders()
263 int ret = getaddrinfo(servers[i], NULL, &hints, &res); in setDnsForwarders()
266 ALOGE("Failed to parse DNS server '%s'", servers[i]); in setDnsForwarders()
272 cmdLen += (strlen(servers[i]) + 1); in setDnsForwarders()
279 strcat(daemonCmd, servers[i]); in setDnsForwarders()
280 mDnsForwarders.push_back(servers[i]); in setDnsForwarders()
DNetlinkHandler.cpp108 const char *servers = evt->findParam("SERVERS"); in onEvent() local
109 if (lifetime && servers) { in onEvent()
110 notifyInterfaceDnsServers(iface, lifetime, servers); in onEvent()
210 const char *servers) { in notifyInterfaceDnsServers() argument
212 iface, lifetime, servers); in notifyInterfaceDnsServers()
DTetherController.h53 int setDnsForwarders(unsigned netId, char **servers, int numServers);
DNetlinkHandler.h51 const char *servers);
DNetdNativeService.h45 binder::Status setResolverConfiguration(int32_t netId, const std::vector<std::string>& servers,
47 binder::Status getResolverInfo(int32_t netId, std::vector<std::string>* servers,
DNetdNativeService.cpp202 const std::vector<std::string>& servers, const std::vector<std::string>& domains, in setResolverConfiguration() argument
207 int err = gCtls->resolverCtrl.setResolverConfiguration(netId, servers, domains, params); in setResolverConfiguration()
216 std::vector<std::string>* servers, std::vector<std::string>* domains, in getResolverInfo() argument
221 int err = gCtls->resolverCtrl.getResolverInfo(netId, servers, domains, params, stats); in getResolverInfo()
/system/netd/tests/
Dnetd_test.cpp154 bool GetResolverInfo(std::vector<std::string>* servers, std::vector<std::string>* domains, in GetResolverInfo() argument
159 auto rv = mNetdSrv->getResolverInfo(TEST_NETID, servers, domains, &params32, &stats32); in GetResolverInfo()
226 std::vector<std::string> servers; in RunGetAddrInfoStressTest_Binder() local
229 ASSERT_NO_FATAL_FAILURE(SetupDNSServers(MAXNS, mappings, &dns, &servers)); in RunGetAddrInfoStressTest_Binder()
231 ASSERT_TRUE(SetResolversForNetwork(servers, domains, mDefaultParams_Binder)); in RunGetAddrInfoStressTest_Binder()
236 thread = std::thread([this, &servers, &dns, &mappings, num_queries]() { in RunGetAddrInfoStressTest_Binder()
280 std::vector<std::string> servers = { listen_addr }; in TEST_F() local
281 ASSERT_TRUE(SetResolversForNetwork(mDefaultSearchDomains, servers, mDefaultParams)); in TEST_F()
324 std::vector<std::string> servers; in TEST_F() local
327 ASSERT_NO_FATAL_FAILURE(SetupDNSServers(4, mappings, &dns, &servers)); in TEST_F()
[all …]
/system/netd/tests/dns_responder/
Ddns_responder_client.cpp92 bool DnsResponderClient::SetResolversForNetwork(const std::vector<std::string>& servers, in SetResolversForNetwork() argument
94 auto rv = mNetdSrv->setResolverConfiguration(TEST_NETID, servers, domains, params); in SetResolversForNetwork()
99 const std::vector<std::string>& servers, const std::string& params) { in SetResolversForNetwork() argument
110 for (const auto& str : servers) { in SetResolversForNetwork()
130 std::vector<std::string>* servers) { in SetupDNSServers() argument
133 servers->resize(num_servers); in SetupDNSServers()
135 auto& server = (*servers)[i]; in SetupDNSServers()
Ddns_responder_client.h29 bool SetResolversForNetwork(const std::vector<std::string>& servers,
33 const std::vector<std::string>& servers, const std::string& params);
37 std::vector<std::string>* servers);
/system/tools/hidl/test/
Dhidl_test_helper4 …| CLIENT32_SERVER64] configures whether to run 32-bit or 64-bit versions of the servers and client"
22 echo "Running $1-bit client with $2-bit servers"
28 failed_test_cases+=("$1-bit client with $2-bit servers")
/system/netd/tests/benchmarks/
Ddns_benchmark.cpp95 std::vector<std::string> servers; in SetUp() local
98 dns.SetupDNSServers(MAXNS, mappings, &mDns, &servers); in SetUp()
101 dns.SetResolversForNetwork(servers, domains, mDefaultParams_Binder); in SetUp()
/system/netd/server/binder/android/net/
DINetd.aidl109 void setResolverConfiguration(int netId, in @utf8InCpp String[] servers, in setResolverConfiguration() argument
146 void getResolverInfo(int netId, out @utf8InCpp String[] servers, in getResolverInfo() argument
/system/bt/service/doc/
DIBluetoothGattServer.txt37 * Unregisters all previously registered servers.
/system/sepolicy/private/
Dapp_neverallows.te125 # 1. HwBinder servers do not perform client authentication because HIDL
131 # 2. HAL servers (a subset of HwBinder services) contain code with higher
/system/sepolicy/public/
Dattributes168 # All HAL servers
/system/core/adb/
Dprotocol.txt228 The bridge program will be able to have a number of mini-servers