Searched refs:DNSResponder (Results 1 – 8 of 8) sorted by relevance
/system/netd/resolv/dns_responder/ |
D | dns_responder.cpp | 538 DNSResponder::DNSResponder(std::string listen_address, std::string listen_service, in DNSResponder() function in test::DNSResponder 545 DNSResponder::~DNSResponder() { in ~DNSResponder() 549 void DNSResponder::addMapping(const std::string& name, ns_type type, const std::string& addr) { in addMapping() 562 void DNSResponder::removeMapping(const std::string& name, ns_type type) { in removeMapping() 573 void DNSResponder::setResponseProbability(double response_probability) { in setResponseProbability() 577 void DNSResponder::setEdns(Edns edns) { in setEdns() 581 bool DNSResponder::running() const { in running() 585 bool DNSResponder::startServer() { in startServer() 650 handler_thread_ = std::thread(&DNSResponder::requestHandler, this); in startServer() 656 bool DNSResponder::stopServer() { in stopServer() [all …]
|
D | dns_responder.h | 49 class DNSResponder { 51 DNSResponder(std::string listen_address = kDefaultListenAddr, 55 ~DNSResponder();
|
D | dns_responder_client.cpp | 104 std::vector<std::unique_ptr<test::DNSResponder>>* dns, in SetupDNSServers() 113 d = std::make_unique<test::DNSResponder>(server, listen_srv, 250, ns_rcode::ns_r_servfail); in SetupDNSServers()
|
D | dns_responder_client.h | 87 std::vector<std::unique_ptr<test::DNSResponder>>* dns,
|
/system/netd/resolv/ |
D | resolver_test.cpp | 193 size_t GetNumQueries(const test::DNSResponder& dns, const char* name) const { in GetNumQueries() 204 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, in GetNumQueriesForType() 233 std::vector<std::unique_ptr<test::DNSResponder>> dns; in RunGetAddrInfoStressTest_Binder() 283 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns() 304 test::DNSResponder dns; in TEST_F() 327 test::DNSResponder dns; in TEST_F() 381 test::DNSResponder dns; in TEST_F() 404 test::DNSResponder dns; in TEST_F() 453 test::DNSResponder dns; in TEST_F() 518 std::vector<std::unique_ptr<test::DNSResponder>> dns; in TEST_F() [all …]
|
D | libnetd_resolv_test.cpp | 76 size_t GetNumQueries(const test::DNSResponder& dns, const char* name) const { in GetNumQueries() 335 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F() 362 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F() 420 test::DNSResponder dns(listen_addr, listen_srv, 250, in TEST_F() 445 test::DNSResponder dns(listen_addr, listen_srv, 250, static_cast<ns_rcode>(-1) /*no response*/); in TEST_F() 469 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F() 504 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F() 547 test::DNSResponder dns(listen_addr, listen_srv, 250, in TEST_F() 569 test::DNSResponder dns(listen_addr, listen_srv, 250, static_cast<ns_rcode>(-1) /*no response*/); in TEST_F()
|
D | dnsresolver_binder_test.cpp | 179 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F()
|
/system/netd/tests/benchmarks/ |
D | dns_benchmark.cpp | 59 std::vector<std::unique_ptr<test::DNSResponder>> mDns;
|