Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DDnsTlsTransport.cpp203 const int qdcount = (recvbuf[4] << 8) | recvbuf[5]; in validate() local
204 if (qdcount != 1) { in validate()
205 LOG(WARNING) << "reply query count != 1: " << qdcount; in validate()
Dres_send.cpp351 int qdcount = ntohs(((const HEADER*) (const void*) buf)->qdcount); in res_nameinquery() local
353 while (qdcount-- > 0) { in res_nameinquery()
382 int qdcount = ntohs(((const HEADER*) (const void*) buf1)->qdcount); in res_queriesmatch() local
394 if (qdcount != ntohs(((const HEADER*) (const void*) buf2)->qdcount)) return (0); in res_queriesmatch()
395 while (qdcount-- > 0) { in res_queriesmatch()
Dres_debug.cpp243 int qdcount, ancount, nscount, arcount; in res_pquery() local
253 qdcount = ns_msg_count(handle, ns_s_qd); in res_pquery()
273 StringAppendF(&s, "; %s: %d", p_section(ns_s_qd, (int)opcode), qdcount); in res_pquery()
Dgethnamaddr.cpp136 int ancount, qdcount; in getanswer() local
170 qdcount = ntohs(hp->qdcount); in getanswer()
175 if (qdcount != 1) goto no_recovery; in getanswer()
Dgetaddrinfo.cpp853 int type, ancount, qdcount; in getanswer() local
881 qdcount = ntohs(hp->qdcount); in getanswer()
886 if (qdcount != 1) { in getanswer()
Dres_mkquery.cpp147 hp->qdcount = htons(1); in res_nmkquery()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp327 unsigned qdcount; in read() local
331 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount, &nscount, &arcount); in read()
336 if (qdcount) { in read()
337 questions.resize(qdcount); in read()
338 for (unsigned i = 0; i < qdcount; ++i) { in read()
395 header.qdcount = htons(questions.size()); in write()
433 const char* DNSHeader::readHeader(const char* buffer, const char* buffer_end, unsigned* qdcount, in readHeader() argument
450 *qdcount = ntohs(header.qdcount); in readHeader()
Ddns_responder.h109 uint16_t qdcount; member
115 const char* readHeader(const char* buffer, const char* buffer_end, unsigned* qdcount,
/packages/modules/DnsResolver/tests/testdata/
DREADME.md139 qdcount = 1