Lines Matching refs:hp
1317 const HEADER *hp; in getanswer() local
1349 hp = &answer->hdr; in getanswer()
1350 ancount = ntohs(hp->ancount); in getanswer()
1351 qdcount = ntohs(hp->qdcount); in getanswer()
2163 HEADER *hp; in res_queryN() local
2181 hp = (HEADER *)(void *)t->answer; in res_queryN()
2185 hp->rcode = NOERROR; /* default */ in res_queryN()
2224 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2225 rcode = hp->rcode; /* record most recent error */ in res_queryN()
2240 printf(";; rcode = %u, ancount=%u\n", hp->rcode, in res_queryN()
2241 ntohs(hp->ancount)); in res_queryN()
2246 ancount += ntohs(hp->ancount); in res_queryN()
2284 HEADER *hp; in res_searchN() local
2292 hp = (HEADER *)(void *)target->answer; /*XXX*/ in res_searchN()
2377 if (hp->rcode == SERVFAIL) { in res_searchN()