/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 121 int qclass, qtype; // class and type of query member 841 int qtype, const struct addrinfo* pai, int* herrno) { in getanswer() argument 866 switch (qtype) { in getanswer() 895 if (qtype == T_A || qtype == T_AAAA || qtype == T_ANY) { in getanswer() 932 if ((qtype == T_A || qtype == T_AAAA || qtype == T_ANY) && type == T_CNAME) { in getanswer() 950 if (qtype == T_ANY) { in getanswer() 955 } else if (type != qtype) { in getanswer() 958 << p_type(qtype) << "\", got type \"" << p_type(type) << "\""; in getanswer() 1410 q.qtype = T_AAAA; in dns_getaddrinfo() 1415 q2.qtype = T_A; in dns_getaddrinfo() [all …]
|
D | gethnamaddr.cpp | 128 static struct hostent* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument 152 switch (qtype) { in getanswer() 181 if (qtype == T_A || qtype == T_AAAA) { in getanswer() 218 if ((qtype == T_A || qtype == T_AAAA) && type == T_CNAME) { in getanswer() 245 if (qtype == T_PTR && type == T_CNAME) { in getanswer() 264 if (type != qtype) { in getanswer() 267 << p_type(qtype) << "\", got type \"" << p_type(type) << "\""; in getanswer()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 267 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur)); in read() 279 *reinterpret_cast<uint16_t*>(buffer_cur) = htons(qtype); in write() 287 dnstype2str(qtype), dnsclass2str(qclass)); in toString() 776 queries_.push_back({question.qname.name, ns_type(question.qtype), protocol}); in handleDNSRequest() 803 if (question.qtype == ns_type::ns_t_a || question.qtype == ns_type::ns_t_aaaa || in addAnswerRecords() 804 question.qtype == ns_type::ns_t_ptr) in addAnswerRecords() 806 rtypes.push_back(question.qtype); in addAnswerRecords() 837 << dnstype2str(question.qtype) << ", lazily refusing to add an answer"; in addAnswerRecords() 1009 const int qtype = questions[0].qtype; in makeResponseFromDnsHeader() local 1010 const auto it = dnsheader_mappings_.find(QueryKey(name, qtype)); in makeResponseFromDnsHeader() [all …]
|
D | dns_responder.h | 54 unsigned qtype; member
|
/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() 88 .rtype = question.qtype, 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()
|
D | resolv_unit_test.cpp | 81 DnsMessage MakeDnsMessage(const std::string& qname, ns_type qtype, in MakeDnsMessage() argument 104 .qtype = qtype, 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 | 5549 .qtype = ns_type::ns_t_a, in TEST_P()
|
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeMultinetworkJni.cpp | 76 int makeQuery(const char* name, int qtype, uint8_t* buf, size_t buflen) { in makeQuery() argument 77 return res_mkquery(ns_o_query, name, ns_c_in, qtype, NULL, 0, NULL, buf, buflen); in makeQuery()
|
/packages/modules/DnsResolver/tests/testdata/ |
D | README.md | 146 | qtype = AAAA
|