Home
last modified time | relevance | path

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

/bionic/libc/netbsd/resolv/
Dres_query.c183 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
188 ntohs(hp->ancount), in res_nquery()
Dres_mkquery.c215 hp->ancount = htons(1); in res_nmkquery()
Dres_debug.c244 int qdcount, ancount, nscount, arcount; in res_pquery() local
255 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
291 p_section(ns_s_an, (int)opcode), ancount); in res_pquery()
308 if (qdcount == 0 && ancount == 0 && in res_pquery()
Dres_cache.c1082 int ancount, n; in answer_getTTL() local
1089 ancount = ns_msg_count(handle, ns_s_an); in answer_getTTL()
1091 if (ancount == 0) { in answer_getTTL()
1095 for (n = 0; n < ancount; n++) { in answer_getTTL()
/bionic/libc/netbsd/net/
Dgetaddrinfo.c1308 int type, class, ancount, qdcount; in getanswer() local
1336 ancount = ntohs(hp->ancount); in getanswer()
1368 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
2166 int ancount; in res_queryN() local
2172 ancount = 0; in res_queryN()
2218 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2223 ntohs(hp->ancount)); in res_queryN()
2228 ancount += ntohs(hp->ancount); in res_queryN()
2233 if (ancount == 0) { in res_queryN()
2253 return ancount; in res_queryN()
/bionic/libc/private/
Darpa_nameser_compat.h131 unsigned ancount :16; /* number of answer entries */ member
/bionic/libc/netbsd/
Dgethnamaddr.c185 int type, class, ancount, qdcount; in getanswer() local
214 ancount = ntohs(hp->ancount); in getanswer()
253 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()