Home
last modified time | relevance | path

Searched refs:ancount (Results 1 – 7 of 7) sorted by relevance

/bionic/libc/dns/resolv/
Dres_query.c184 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
189 ntohs(hp->ancount), in res_nquery()
Dres_mkquery.c215 hp->ancount = htons(1); in res_nmkquery()
Dres_debug.c281 int qdcount, ancount, nscount, arcount; in res_pquery() local
292 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
328 p_section(ns_s_an, (int)opcode), ancount); in res_pquery()
345 if (qdcount == 0 && ancount == 0 && in res_pquery()
Dres_cache.c1071 int ancount, n; in answer_getTTL() local
1078 ancount = ns_msg_count(handle, ns_s_an); in answer_getTTL()
1080 if (ancount == 0) { in answer_getTTL()
1084 for (n = 0; n < ancount; n++) { in answer_getTTL()
/bionic/libc/include/arpa/
Dnameser_compat.h86 unsigned ancount :16; /* number of answer entries */ member
/bionic/libc/dns/net/
Dgetaddrinfo.c1306 int type, class, ancount, qdcount; in getanswer() local
1334 ancount = ntohs(hp->ancount); in getanswer()
1366 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
2145 int ancount; in res_queryN() local
2151 ancount = 0; in res_queryN()
2197 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2202 ntohs(hp->ancount)); in res_queryN()
2207 ancount += ntohs(hp->ancount); in res_queryN()
2212 if (ancount == 0) { in res_queryN()
2232 return ancount; in res_queryN()
Dgethnamaddr.c210 int type, class, ancount, qdcount; in getanswer() local
244 ancount = ntohs(hp->ancount); in getanswer()
277 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()