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_debug.c299 int qdcount, ancount, nscount, arcount; in res_pquery() local
310 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
346 p_section(ns_s_an, (int)opcode), ancount); in res_pquery()
363 if (qdcount == 0 && ancount == 0 && in res_pquery()
Dres_mkquery.c215 hp->ancount = htons(1); in res_nmkquery()
Dres_cache.c1127 int ancount, n; in answer_getTTL() local
1134 ancount = ns_msg_count(handle, ns_s_an); in answer_getTTL()
1136 if (ancount == 0) { in answer_getTTL()
1140 for (n = 0; n < ancount; n++) { in answer_getTTL()
/bionic/libc/dns/net/
Dgetaddrinfo.c1322 int type, class, ancount, qdcount; in getanswer() local
1350 ancount = ntohs(hp->ancount); in getanswer()
1383 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
2167 int ancount; in res_queryN() local
2173 ancount = 0; in res_queryN()
2224 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2241 ntohs(hp->ancount)); in res_queryN()
2246 ancount += ntohs(hp->ancount); in res_queryN()
2251 if (ancount == 0) { in res_queryN()
2271 return ancount; in res_queryN()
Dgethnamaddr.c225 int type, class, ancount, qdcount; in getanswer() local
259 ancount = ntohs(hp->ancount); in getanswer()
292 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
/bionic/libc/include/arpa/
Dnameser_compat.h71 unsigned ancount :16; /* number of answer entries */ member