Home
last modified time | relevance | path

Searched refs:searchDomains (Results 1 – 5 of 5) sorted by relevance

/system/netd/tests/dns_responder/
Ddns_responder_client.cpp98 bool DnsResponderClient::SetResolversForNetwork(const std::vector<std::string>& searchDomains, in SetResolversForNetwork() argument
101 if (!searchDomains.empty()) { in SetResolversForNetwork()
102 cmd += searchDomains[0].c_str(); in SetResolversForNetwork()
103 for (size_t i = 1 ; i < searchDomains.size() ; ++i) { in SetResolversForNetwork()
105 cmd += searchDomains[i]; in SetResolversForNetwork()
Ddns_responder_client.h32 bool SetResolversForNetwork(const std::vector<std::string>& searchDomains,
/system/netd/server/
DResolverController.h39 int setDnsServers(unsigned netId, const char* searchDomains, const char** servers,
DResolverController.cpp46 int ResolverController::setDnsServers(unsigned netId, const char* searchDomains, in setDnsServers() argument
51 return -_resolv_set_nameservers_for_net(netId, servers, numservers, searchDomains, params); in setDnsServers()
/system/netd/tests/
Dnetd_test.cpp471 std::vector<std::string> searchDomains = { "example1.com", "example2.com", "example3.com" }; in TEST_F() local
480 ASSERT_TRUE(SetResolversForNetwork(searchDomains, servers, mDefaultParams)); in TEST_F()