Home
last modified time | relevance | path

Searched refs:ns_type (Results 1 – 13 of 13) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp103 {ns_type::ns_t_a, "A"}, in dnstype2str()
104 {ns_type::ns_t_ns, "NS"}, in dnstype2str()
105 {ns_type::ns_t_md, "MD"}, in dnstype2str()
106 {ns_type::ns_t_mf, "MF"}, in dnstype2str()
107 {ns_type::ns_t_cname, "CNAME"}, in dnstype2str()
108 {ns_type::ns_t_soa, "SOA"}, in dnstype2str()
109 {ns_type::ns_t_mb, "MB"}, in dnstype2str()
110 {ns_type::ns_t_mb, "MG"}, in dnstype2str()
111 {ns_type::ns_t_mr, "MR"}, in dnstype2str()
112 {ns_type::ns_t_null, "NULL"}, in dnstype2str()
[all …]
Ddns_responder.h149 ns_type type;
172 void addMapping(const std::string& name, ns_type type, const std::string& addr);
173 void addMappingDnsHeader(const std::string& name, ns_type type, const DNSHeader& header);
176 void removeMapping(const std::string& name, ns_type type);
177 void removeMappingDnsHeader(const std::string& name, ns_type type);
Ddns_responder_client_ndk.cpp153 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_a, mapping.ip4.c_str()); in SetupDNSServers()
154 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp57 ns_type type; // record type
84 DnsMessage MakeDnsMessage(const std::string& qname, ns_type qtype, in MakeDnsMessage()
464 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, v4addr); in TEST_F()
550 dns.addMapping(host_name, ns_type::ns_t_aaaa, v6addr); in TEST_F()
604 dns.addMapping(hostname, ns_type::ns_t_a, "1.2.3.3"); in TEST_F()
605 dns.addMapping(hostname, ns_type::ns_t_aaaa, "2001:db8::42"); in TEST_F()
644 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
850 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
944 mdnsv4.addMapping(host_name, ns_type::ns_t_a, v4addr); in TEST_F()
[all …]
Dresolv_integration_test.cpp446 StartDns(dns, {{kHelloExampleCom, ns_type::ns_t_a, "1.2.3.3"}}); in TEST_F()
451 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, nonexistent_host_name)); in TEST_F()
457 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, kHelloExampleCom)); in TEST_F()
484 {kHelloExampleCom, ns_type::ns_t_cname, "a.example.com."}, in TEST_F()
485 {"a.example.com.", ns_type::ns_t_cname, "b.example.com."}, in TEST_F()
486 {"b.example.com.", ns_type::ns_t_cname, "c.example.com."}, in TEST_F()
487 {"c.example.com.", ns_type::ns_t_cname, "d.example.com."}, in TEST_F()
488 {"d.example.com.", ns_type::ns_t_cname, "e.example.com."}, in TEST_F()
489 {"e.example.com.", ns_type::ns_t_cname, host_name}, in TEST_F()
490 {host_name, ns_type::ns_t_a, "1.2.3.3"}, in TEST_F()
[all …]
Dresolv_test_utils.h158 ns_type type; // record type
407 {kHelloExampleCom, ns_type::ns_t_cname, kCnameA},
408 {kCnameA, ns_type::ns_t_cname, kCnameB},
409 {kCnameB, ns_type::ns_t_cname, kCnameC},
410 {kCnameC, ns_type::ns_t_cname, kCnameD},
411 {kCnameD, ns_type::ns_t_a, kHelloExampleComAddrV4},
418 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name);
Dresolv_private_dns_test.cpp279 {kQueryHostname, ns_type::ns_t_a, kQueryAnswerA}, in SetUp()
280 {kQueryHostname, ns_type::ns_t_aaaa, kQueryAnswerAAAA}, in SetUp()
474 {host_name, ns_type::ns_t_a, kQueryAnswerA}, in TEST_P()
475 {host_name, ns_type::ns_t_aaaa, kQueryAnswerAAAA}, in TEST_P()
539 const DnsRecord r = {ptr_addr_v6, ns_type::ns_t_ptr, ptr_name}; in TEST_P()
605 const DnsRecord r = {ptr_addr_v6, ns_type::ns_t_ptr, ptr_name}; in TEST_P()
782 dns_ipv6.addMapping(kQueryHostname, ns_type::ns_t_a, kQueryAnswerA); in TEST_F()
783 dns_ipv6.addMapping(kQueryHostname, ns_type::ns_t_aaaa, kQueryAnswerAAAA); in TEST_F()
819 dns_ipv6.addMapping(kQueryHostname, ns_type::ns_t_a, kQueryAnswerA); in TEST_F()
820 dns_ipv6.addMapping(kQueryHostname, ns_type::ns_t_aaaa, kQueryAnswerAAAA); in TEST_F()
[all …]
Dresolv_callback_unit_test.cpp151 dns.addMapping(kHelloExampleCom, ns_type::ns_t_a, kHelloExampleComAddrV4); in TEST_F()
Dresolv_gold_test.cpp363 dns.addMapping(kHelloExampleCom, ns_type::ns_t_a, kHelloExampleComAddrV4); in TEST_F()
364 dns.addMapping(kHelloExampleCom, ns_type::ns_t_aaaa, kHelloExampleComAddrV6); in TEST_F()
Dresolv_test_utils.cpp132 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name) { in GetNumQueriesForType()
Ddnsresolver_binder_test.cpp307 dns.addMapping("hi.example.com.", ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
/packages/modules/DnsResolver/tests/fuzzer/
Dresolv_fuzzer_utils.h27 {kHelloExampleCom, ns_type::ns_t_a, kHelloExampleComAddrV4},
28 {kHelloExampleCom, ns_type::ns_t_aaaa, kHelloExampleComAddrV6},
29 {kCnameA, ns_type::ns_t_cname, kCnameB},
30 {kCnameB, ns_type::ns_t_a, kHelloExampleComAddrV4},
31 {kCnameC, ns_type::ns_t_cname, kCnameD},
/packages/modules/Connectivity/framework/jni/
Dandroid_net_NetworkUtils.cpp125 jstring dname, jint ns_class, jint ns_type, jint flags) { in android_net_utils_resNetworkQuery() argument
135 int fd = android_res_nquery(netHandle, queryname, ns_class, ns_type, flags); in android_net_utils_resNetworkQuery()