Lines Matching refs:ancount
1993 int type, class, ancount, qdcount; in getanswer() local
2017 ancount = ntohs(hp->ancount); in getanswer()
2049 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
2187 RES_SET_H_ERRNO(res, ntohs(hp->ancount) > 0 ? NO_DATA : NO_RECOVERY); in getanswer()
2709 int ancount; in res_queryN() local
2712 ancount = 0; in res_queryN()
2781 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2786 ntohs(hp->ancount)); in res_queryN()
2791 ancount += ntohs(hp->ancount); in res_queryN()
2798 if (ancount == 0) { in res_queryN()
2818 return (ancount); in res_queryN()