Searched refs:qtype (Results 1 – 8 of 8) sorted by relevance
/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 122 int qclass, qtype; // class and type of query member 842 int qtype, const struct addrinfo* pai, int* herrno) { in getanswer() argument 867 switch (qtype) { in getanswer() 896 if (qtype == T_A || qtype == T_AAAA || qtype == T_ANY) { in getanswer() 933 if ((qtype == T_A || qtype == T_AAAA || qtype == T_ANY) && type == T_CNAME) { in getanswer() 951 if (qtype == T_ANY) { in getanswer() 956 } else if (type != qtype) { in getanswer() 959 << p_type(qtype) << "\", got type \"" << p_type(type) << "\""; in getanswer() 1411 q.qtype = T_AAAA; in dns_getaddrinfo() 1416 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()
|
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() 89 .rtype = question.qtype, 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()
|
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()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 237 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur)); in read() 249 *reinterpret_cast<uint16_t*>(buffer_cur) = htons(qtype); in write() 257 dnstype2str(qtype), dnsclass2str(qclass)); in toString() 746 queries_.push_back({question.qname.name, ns_type(question.qtype), protocol}); in handleDNSRequest() 773 if (question.qtype == ns_type::ns_t_a || question.qtype == ns_type::ns_t_aaaa || in addAnswerRecords() 774 question.qtype == ns_type::ns_t_ptr) in addAnswerRecords() 776 rtypes.push_back(question.qtype); in addAnswerRecords() 807 << dnstype2str(question.qtype) << ", lazily refusing to add an answer"; in addAnswerRecords() 979 const int qtype = questions[0].qtype; in makeResponseFromDnsHeader() local 980 const auto it = dnsheader_mappings_.find(QueryKey(name, qtype)); in makeResponseFromDnsHeader() [all …]
|
D | dns_responder.h | 54 unsigned qtype; member
|
/packages/modules/DnsResolver/tests/testdata/ |
D | README.md | 146 | qtype = AAAA
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 4838 .qtype = ns_type::ns_t_a, in TEST_P()
|