/packages/modules/DnsResolver/tests/ |
D | resolv_cache_unit_test.cpp | 71 std::vector<char> makeQuery(int op, const char* qname, int qclass, int qtype) { in makeQuery() argument 73 const int len = res_nmkquery(op, qname, qclass, qtype, /*data=*/nullptr, /*datalen=*/0, buf, in makeQuery() 85 std::string rname(question.qname.name); in makeAnswer() 87 .name = {.name = question.qname.name}, in makeAnswer() 255 CacheEntry makeCacheEntry(int op, const char* qname, int qclass, int qtype, const char* rdata, in makeCacheEntry() argument 258 ce.query = makeQuery(op, qname, qclass, qtype); in makeCacheEntry() 565 std::string qname = android::base::StringPrintf("cache.%04d", i); in TEST_F() local 566 SCOPED_TRACE(qname); in TEST_F() 567 CacheEntry ce = makeCacheEntry(QUERY, qname.data(), ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F() 574 std::string qname = android::base::StringPrintf("cache.%04d", i); in TEST_F() local [all …]
|
D | resolv_unit_test.cpp | 81 DnsMessage MakeDnsMessage(const std::string& qname, ns_type qtype, in MakeDnsMessage() argument 103 .qname = {.name = qname}, in MakeDnsMessage() 111 test::DNSRecord record = MakeAnswerRecord(qname, qclass, qtype, r); in MakeDnsMessage() 115 return {qname, qtype, header}; in MakeDnsMessage()
|
D | resolv_integration_test.cpp | 5548 .qname = {.name = kHelloExampleCom}, in TEST_P()
|
/packages/modules/DnsResolver/ |
D | gethnamaddr.cpp | 128 static struct hostent* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument 145 _DIAGASSERT(qname != NULL); in getanswer() 147 tname = qname; in getanswer() 191 qname = hent->h_name; in getanswer() 266 LOG(DEBUG) << __func__ << ": asked for \"" << qname << " " << p_class(C_IN) << " " in getanswer() 274 LOG(DEBUG) << __func__ << ": asked for \"" << qname << "\", got \"" << bp in getanswer() 354 n = (int) strlen(qname) + 1; /* for the \0 */ in getanswer() 356 strlcpy(bp, qname, (size_t)(ep - bp)); in getanswer()
|
D | getaddrinfo.cpp | 840 static struct addrinfo* getanswer(const std::vector<uint8_t>& answer, int anslen, const char* qname, in getanswer() argument 857 assert(qname != NULL); in getanswer() 908 qname = canonname; in getanswer() 957 LOG(DEBUG) << __func__ << ": asked for \"" << qname << " " << p_class(C_IN) << " " in getanswer() 1015 (void) get_canonname(pai, sentinel.ai_next, qname); in getanswer()
|
D | resolv_private.h | 174 int res_nmkquery(int op, const char* qname, int cl, int type, const uint8_t* data, int datalen,
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 258 const char* cur = qname.read(buffer, buffer_end); in read() 273 char* buffer_cur = qname.write(buffer, buffer_end); in write() 286 int len = snprintf(buffer, sizeof(buffer), "Q<%s,%s,%s>", qname.name.c_str(), in toString() 776 queries_.push_back({question.qname.name, ns_type(question.qtype), protocol}); in handleDNSRequest() 800 std::string rname = question.qname.name; in addAnswerRecords() 836 LOG(INFO) << "no mapping found for " << question.qname.name << " " in addAnswerRecords() 1008 const std::string name = questions[0].qname.name; in makeResponseFromDnsHeader()
|
D | dns_tls_frontend.cpp | 269 if (question.qname.name.find("dnsotls-ds.metric.gstatic.com") != in handleRequests()
|
D | dns_responder.h | 53 DNSName qname; member
|
/packages/modules/DnsResolver/tests/testdata/ |
D | README.md | 145 | qname = 'www.youtube.com.'
|