Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DDnsTlsTransport.cpp80 const int qdcount = (answer[4] << 8) | answer[5]; in checkDnsResponse() local
81 if (qdcount != 1) { in checkDnsResponse()
82 return Errorf("reply query count != 1: {}", qdcount); in checkDnsResponse()
Dres_debug.cpp253 int qdcount, ancount, nscount, arcount; in res_pquery() local
263 qdcount = ns_msg_count(handle, ns_s_qd); in res_pquery()
283 fmt::format_to(out, "; {}: {}", p_section(ns_s_qd, (int)opcode), qdcount); in res_pquery()
Dres_send.cpp367 int qdcount = ntohs(((const HEADER*)(const void*)msg)->qdcount); in res_nameinquery() local
369 while (qdcount-- > 0) { in res_nameinquery()
398 int qdcount = ntohs(((const HEADER*) (const void*) buf1)->qdcount); in res_queriesmatch() local
410 if (qdcount != ntohs(((const HEADER*) (const void*) buf2)->qdcount)) return (0); in res_queriesmatch()
411 while (qdcount-- > 0) { in res_queriesmatch()
Dgethnamaddr.cpp121 int ancount, qdcount; in getanswer() local
152 qdcount = ntohs(hp->qdcount); in getanswer()
157 if (qdcount != 1) goto no_recovery; in getanswer()
Dres_mkquery.cpp145 hp->qdcount = htons(1); in res_nmkquery()
Dgetaddrinfo.cpp828 int type, ancount, qdcount; in getanswer() local
856 qdcount = ntohs(hp->qdcount); in getanswer()
861 if (qdcount != 1) { in getanswer()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp352 unsigned qdcount; in read() local
356 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount, &nscount, &arcount); in read()
361 if (qdcount) { in read()
362 questions.resize(qdcount); in read()
363 for (unsigned i = 0; i < qdcount; ++i) { in read()
420 header.qdcount = htons(questions.size()); in write()
458 const char* DNSHeader::readHeader(const char* buffer, const char* buffer_end, unsigned* qdcount, in readHeader() argument
475 *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/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsPacket.java144 public DnsHeader(int id, int flags, int qdcount, int ancount) { in DnsHeader() argument
148 mRecordCount[QDSECTION] = qdcount; in DnsHeader()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsSvcbPacketTest.java121 private static byte[] makeDnsResponseHeaderAsByteArray(int qdcount, int ancount, int nscount, in makeDnsResponseHeaderAsByteArray() argument
126 buffer.putShort((short) qdcount); in makeDnsResponseHeaderAsByteArray()
/packages/modules/DnsResolver/tests/testdata/
DREADME.md139 qdcount = 1