Searched refs:ns_type (Results 1 – 8 of 8) sorted by relevance
/system/netd/resolv/dns_responder/ |
D | dns_responder.cpp | 85 { ns_type::ns_t_a, "A" }, in dnstype2str() 86 { ns_type::ns_t_ns, "NS" }, in dnstype2str() 87 { ns_type::ns_t_md, "MD" }, in dnstype2str() 88 { ns_type::ns_t_mf, "MF" }, in dnstype2str() 89 { ns_type::ns_t_cname, "CNAME" }, in dnstype2str() 90 { ns_type::ns_t_soa, "SOA" }, in dnstype2str() 91 { ns_type::ns_t_mb, "MB" }, in dnstype2str() 92 { ns_type::ns_t_mb, "MG" }, in dnstype2str() 93 { ns_type::ns_t_mr, "MR" }, in dnstype2str() 94 { ns_type::ns_t_null, "NULL" }, in dnstype2str() [all …]
|
D | dns_responder.h | 64 void addMapping(const std::string& name, ns_type type, const std::string& addr); 65 void removeMapping(const std::string& name, ns_type type); 77 std::vector<std::pair<std::string, ns_type>> queries() const; 164 mutable std::vector<std::pair<std::string, ns_type>> queries_
|
D | dns_responder_client.cpp | 115 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_a, mapping.ip4.c_str()); in SetupDNSServers() 116 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
|
/system/netd/resolv/ |
D | resolver_test.cpp | 101 ns_type type; // record type 204 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, in GetNumQueriesForType() 305 StartDns(dns, {{kHelloExampleCom, ns_type::ns_t_a, "1.2.3.3"}}); in TEST_F() 310 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, nonexistent_host_name)); in TEST_F() 316 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, kHelloExampleCom)); in TEST_F() 330 {kHelloExampleCom, ns_type::ns_t_cname, "a.example.com."}, in TEST_F() 331 {"a.example.com.", ns_type::ns_t_cname, "b.example.com."}, in TEST_F() 332 {"b.example.com.", ns_type::ns_t_cname, "c.example.com."}, in TEST_F() 333 {"c.example.com.", ns_type::ns_t_cname, "d.example.com."}, in TEST_F() 334 {"d.example.com.", ns_type::ns_t_cname, "e.example.com."}, in TEST_F() [all …]
|
D | libnetd_resolv_test.cpp | 336 dns.addMapping(v4_host_name, ns_type::ns_t_a, "1.2.3.3"); in TEST_F() 363 dns.addMapping(host_name, ns_type::ns_t_a, v4addr); in TEST_F() 364 dns.addMapping(host_name, ns_type::ns_t_aaaa, v6addr); in TEST_F() 422 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.4"); in TEST_F() 446 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.4"); in TEST_F() 470 dns.addMapping(host_name, ns_type::ns_t_a, v4addr); in TEST_F() 471 dns.addMapping(host_name, ns_type::ns_t_aaaa, v6addr); in TEST_F() 505 dns.addMapping(v4_host_name, ns_type::ns_t_a, "1.2.3.3"); in TEST_F() 549 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.4"); in TEST_F() 570 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
|
D | dnsresolver_binder_test.cpp | 180 dns.addMapping("hi.example.com.", ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
|
/system/netd/include/ |
D | NetdClient.h | 53 int resNetworkQuery(unsigned netId, const char* dname, int ns_class, int ns_type, uint32_t flags);
|
/system/netd/client/ |
D | NetdClient.cpp | 421 extern "C" int resNetworkQuery(unsigned netId, const char* dname, int ns_class, int ns_type, in resNetworkQuery() argument 424 int len = res_mkquery(ns_o_query, dname, ns_class, ns_type, nullptr, 0, nullptr, buf.data(), in resNetworkQuery()
|