/packages/modules/DnsResolver/ |
D | resolv_cache_unit_test.cpp | 72 std::vector<char> makeQuery(int op, const char* qname, int qclass, int qtype) { in makeQuery() argument 74 const int len = res_nmkquery(op, qname, qclass, qtype, /*data=*/nullptr, /*datalen=*/0, buf, in makeQuery() 86 std::string rname(question.qname.name); in makeAnswer() 88 .name = {.name = question.qname.name}, in makeAnswer() 256 CacheEntry makeCacheEntry(int op, const char* qname, int qclass, int qtype, const char* rdata, in makeCacheEntry() argument 259 ce.query = makeQuery(op, qname, qclass, qtype); in makeCacheEntry() 566 std::string qname = android::base::StringPrintf("cache.%04d", i); in TEST_F() local 567 SCOPED_TRACE(qname); in TEST_F() 568 CacheEntry ce = makeCacheEntry(QUERY, qname.data(), ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F() 575 std::string qname = android::base::StringPrintf("cache.%04d", i); in TEST_F() local [all …]
|
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 | 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 | getaddrinfo.cpp | 841 static struct addrinfo* getanswer(const std::vector<uint8_t>& answer, int anslen, const char* qname, in getanswer() argument 858 assert(qname != NULL); in getanswer() 909 qname = canonname; in getanswer() 958 LOG(DEBUG) << __func__ << ": asked for \"" << qname << " " << p_class(C_IN) << " " in getanswer() 1016 (void) get_canonname(pai, sentinel.ai_next, qname); in getanswer()
|
D | resolv_private.h | 144 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 | 228 const char* cur = qname.read(buffer, buffer_end); in read() 243 char* buffer_cur = qname.write(buffer, buffer_end); in write() 256 int len = snprintf(buffer, sizeof(buffer), "Q<%s,%s,%s>", qname.name.c_str(), in toString() 746 queries_.push_back({question.qname.name, ns_type(question.qtype), protocol}); in handleDNSRequest() 770 std::string rname = question.qname.name; in addAnswerRecords() 806 LOG(INFO) << "no mapping found for " << question.qname.name << " " in addAnswerRecords() 978 const std::string name = questions[0].qname.name; in makeResponseFromDnsHeader()
|
D | dns_responder.h | 53 DNSName qname; member
|
/packages/modules/DnsResolver/tests/testdata/ |
D | README.md | 145 | qname = 'www.youtube.com.'
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 4837 .qname = {.name = kHelloExampleCom}, in TEST_P()
|