Lines Matching refs:hp
1311 const HEADER *hp; in getanswer() local
1343 hp = &answer->hdr; in getanswer()
1344 ancount = ntohs(hp->ancount); in getanswer()
1345 qdcount = ntohs(hp->qdcount); in getanswer()
2157 HEADER *hp; in res_queryN() local
2174 hp = (HEADER *)(void *)t->answer; in res_queryN()
2175 hp->rcode = NOERROR; /* default */ in res_queryN()
2213 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2214 rcode = hp->rcode; /* record most recent error */ in res_queryN()
2217 printf(";; rcode = %u, ancount=%u\n", hp->rcode, in res_queryN()
2218 ntohs(hp->ancount)); in res_queryN()
2223 ancount += ntohs(hp->ancount); in res_queryN()
2261 HEADER *hp; in res_searchN() local
2269 hp = (HEADER *)(void *)target->answer; /*XXX*/ in res_searchN()
2348 if (hp->rcode == SERVFAIL) { in res_searchN()