Home
last modified time | relevance | path

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

/system/netd/resolv/
Dgetaddrinfo.cpp120 int qclass, qtype; /* class and type of query */ member
828 static struct addrinfo* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument
854 switch (qtype) { in getanswer()
883 if (qtype == T_A || qtype == T_AAAA || qtype == T_ANY) { in getanswer()
920 if ((qtype == T_A || qtype == T_AAAA || qtype == T_ANY) && type == T_CNAME) { in getanswer()
938 if (qtype == T_ANY) { in getanswer()
943 } else if (type != qtype) { in getanswer()
946 << p_type(qtype) << "\", got type \"" << p_type(type) << "\""; in getanswer()
1402 q.qtype = T_AAAA; in dns_getaddrinfo()
1407 q2.qtype = T_A; in dns_getaddrinfo()
[all …]
Dgethnamaddr.cpp144 static struct hostent* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument
168 switch (qtype) { in getanswer()
197 if (qtype == T_A || qtype == T_AAAA) { in getanswer()
234 if ((qtype == T_A || qtype == T_AAAA) && type == T_CNAME) { in getanswer()
261 if (qtype == T_PTR && type == T_CNAME) { in getanswer()
280 if (type != qtype) { in getanswer()
283 << p_type(qtype) << "\", got type \"" << p_type(type) << "\""; in getanswer()
374 if (res->nsort && haveanswer > 1 && qtype == T_A) addrsort(addr_ptrs, haveanswer, res); in getanswer()
/system/netd/resolv/dns_responder/
Ddns_responder.cpp245 unsigned qtype; member
262 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur)); in read()
274 *reinterpret_cast<uint16_t*>(buffer_cur) = htons(qtype); in write()
283 dnstype2str(qtype), dnsclass2str(qclass)); in toString()
768 ns_type(question.qtype))); in handleDNSRequest()
813 if (question.qtype == ns_type::ns_t_a || question.qtype == ns_type::ns_t_aaaa) in addAnswerRecords()
815 rtypes.push_back(question.qtype); in addAnswerRecords()
846 question.qname.name.c_str(), dnstype2str(question.qtype)); in addAnswerRecords()