Home
last modified time | relevance | path

Searched refs:DNSResponder (Results 1 – 8 of 8) sorted by relevance

/system/netd/resolv/dns_responder/
Ddns_responder.cpp538 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 …]
Ddns_responder.h49 class DNSResponder {
51 DNSResponder(std::string listen_address = kDefaultListenAddr,
55 ~DNSResponder();
Ddns_responder_client.cpp104 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()
Ddns_responder_client.h87 std::vector<std::unique_ptr<test::DNSResponder>>* dns,
/system/netd/resolv/
Dresolver_test.cpp193 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 …]
Dlibnetd_resolv_test.cpp76 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()
Ddnsresolver_binder_test.cpp179 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F()
/system/netd/tests/benchmarks/
Ddns_benchmark.cpp59 std::vector<std::unique_ptr<test::DNSResponder>> mDns;