Home
last modified time | relevance | path

Searched refs:qtype (Results 1 – 9 of 9) sorted by relevance

/packages/modules/DnsResolver/
Dgetaddrinfo.cpp121 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 …]
Dgethnamaddr.cpp128 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/
Ddns_responder.cpp267 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 …]
Ddns_responder.h54 unsigned qtype; member
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp71 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()
Dresolv_unit_test.cpp81 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()
Dresolv_integration_test.cpp5549 .qtype = ns_type::ns_t_a, in TEST_P()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp76 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/
DREADME.md146 | qtype = AAAA