Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp108 {ns_type::ns_t_a, "A"}, in dnstype2str()
109 {ns_type::ns_t_ns, "NS"}, in dnstype2str()
110 {ns_type::ns_t_md, "MD"}, in dnstype2str()
111 {ns_type::ns_t_mf, "MF"}, in dnstype2str()
112 {ns_type::ns_t_cname, "CNAME"}, in dnstype2str()
113 {ns_type::ns_t_soa, "SOA"}, in dnstype2str()
114 {ns_type::ns_t_mb, "MB"}, in dnstype2str()
115 {ns_type::ns_t_mb, "MG"}, in dnstype2str()
116 {ns_type::ns_t_mr, "MR"}, in dnstype2str()
117 {ns_type::ns_t_null, "NULL"}, in dnstype2str()
[all …]
Ddns_responder.h148 ns_type type;
171 void addMapping(const std::string& name, ns_type type, const std::string& addr);
172 void addMappingDnsHeader(const std::string& name, ns_type type, const DNSHeader& header);
175 void removeMapping(const std::string& name, ns_type type);
176 void removeMappingDnsHeader(const std::string& name, ns_type type);
Ddns_responder_client_ndk.cpp168 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_a, mapping.ip4.c_str()); in SetupDNSServers()
169 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp56 ns_type type; // record type
81 DnsMessage MakeDnsMessage(const std::string& qname, ns_type qtype, in MakeDnsMessage()
461 dns.addMapping(v4_host_name, ns_type::ns_t_a, "1.2.3.3"); in TEST_F()
546 dns.addMapping(host_name, ns_type::ns_t_a, v4addr); in TEST_F()
547 dns.addMapping(host_name, ns_type::ns_t_aaaa, v6addr); in TEST_F()
601 dns.addMapping(hostname, ns_type::ns_t_a, "1.2.3.3"); in TEST_F()
602 dns.addMapping(hostname, ns_type::ns_t_aaaa, "2001:db8::42"); in TEST_F()
641 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
847 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
865 dns.addMapping("cnames.example.com.", ns_type::ns_t_cname, "acname.example.com."); in TEST_F()
[all …]
Dresolv_integration_test.cpp443 StartDns(dns, {{kHelloExampleCom, ns_type::ns_t_a, "1.2.3.3"}}); in TEST_F()
448 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, nonexistent_host_name)); in TEST_F()
454 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, kHelloExampleCom)); in TEST_F()
481 {kHelloExampleCom, ns_type::ns_t_cname, "a.example.com."}, in TEST_F()
482 {"a.example.com.", ns_type::ns_t_cname, "b.example.com."}, in TEST_F()
483 {"b.example.com.", ns_type::ns_t_cname, "c.example.com."}, in TEST_F()
484 {"c.example.com.", ns_type::ns_t_cname, "d.example.com."}, in TEST_F()
485 {"d.example.com.", ns_type::ns_t_cname, "e.example.com."}, in TEST_F()
486 {"e.example.com.", ns_type::ns_t_cname, host_name}, in TEST_F()
487 {host_name, ns_type::ns_t_a, "1.2.3.3"}, in TEST_F()
[all …]
Dresolv_test_utils.h79 ns_type type; // record type
176 {kHelloExampleCom, ns_type::ns_t_cname, kCnameA},
177 {kCnameA, ns_type::ns_t_cname, kCnameB},
178 {kCnameB, ns_type::ns_t_cname, kCnameC},
179 {kCnameC, ns_type::ns_t_cname, kCnameD},
180 {kCnameD, ns_type::ns_t_a, kHelloExampleComAddrV4},
187 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name);
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_callback_unit_test.cpp148 dns.addMapping(kHelloExampleCom, ns_type::ns_t_a, kHelloExampleComAddrV4); in TEST_F()
Dresolv_test_utils.cpp129 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name) { in GetNumQueriesForType()
Ddnsresolver_binder_test.cpp366 dns.addMapping("hi.example.com.", ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
/packages/modules/Connectivity/framework/jni/
Dandroid_net_NetworkUtils.cpp123 jstring dname, jint ns_class, jint ns_type, jint flags) { in android_net_utils_resNetworkQuery() argument
133 int fd = android_res_nquery(netHandle, queryname, ns_class, ns_type, flags); in android_net_utils_resNetworkQuery()