Searched refs:ancount (Results 1 – 10 of 10) sorted by relevance
/system/netd/resolv/dns_responder/ |
D | dns_responder.cpp | 401 uint16_t ancount; member 407 unsigned* qdcount, unsigned* ancount, 413 unsigned ancount; in read() local 416 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount, in read() 432 if (ancount) { in read() 433 answers.resize(ancount); in read() 434 for (unsigned i = 0 ; i < ancount ; ++i) { in read() 482 header.ancount = htons(answers.size()); in write() 511 unsigned* qdcount, unsigned* ancount, in readHeader() argument 530 *ancount = ntohs(header.ancount); in readHeader()
|
/system/netd/resolv/ |
D | DnsTlsTransport.cpp | 199 const int ancount = (recvbuf[6] << 8) | recvbuf[7]; in validate() local 200 ALOGV("%u answer count: %d", netid, ancount); in validate()
|
D | res_debug.cpp | 272 int qdcount, ancount, nscount, arcount; in res_pquery() local 284 ancount = ns_msg_count(handle, ns_s_an); in res_pquery() 304 p = dbprint(p, end, ", %s: %d", p_section(ns_s_an, (int)opcode), ancount); in res_pquery() 317 if (qdcount == 0 && ancount == 0 && nscount == 0 && arcount == 0) LOG(VERBOSE) << ";;"; in res_pquery()
|
D | getaddrinfo.cpp | 840 int type, ancount, qdcount; in getanswer() local 867 ancount = ntohs(hp->ancount); in getanswer() 900 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer() 1578 int ancount; in res_queryN() local 1584 ancount = 0; in res_queryN() 1613 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN() 1624 LOG(DEBUG) << __func__ << ": rcode=" << hp->rcode << ", ancount=" << ntohs(hp->ancount); in res_queryN() 1628 ancount += ntohs(hp->ancount); in res_queryN() 1633 if (ancount == 0) { in res_queryN() 1659 return ancount; in res_queryN()
|
D | res_query.cpp | 171 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery() 173 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()
|
D | res_mkquery.cpp | 188 hp->ancount = htons(1); in res_nmkquery()
|
D | gethnamaddr.cpp | 153 int ancount, qdcount; in getanswer() local 185 ancount = ntohs(hp->ancount); in getanswer() 213 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
|
D | res_cache.cpp | 1002 int ancount, n; in answer_getTTL() local 1009 ancount = ns_msg_count(handle, ns_s_an); in answer_getTTL() 1011 if (ancount == 0) { in answer_getTTL() 1015 for (n = 0; n < ancount; n++) { in answer_getTTL()
|
D | DnsProxyListener.cpp | 182 int ancount = ns_msg_count(handle, ns_s_an); in extractResNsendAnswers() local 184 for (int i = 0; i < ancount; i++) { in extractResNsendAnswers()
|
D | resolver_test.cpp | 1771 int ancount, n = 0; in toString() local 1775 ancount = ns_msg_count(handle, ns_s_an); in toString()
|