Lines Matching refs:hp
1310 const HEADER *hp; in getanswer() local
1342 hp = &answer->hdr; in getanswer()
1343 ancount = ntohs(hp->ancount); in getanswer()
1344 qdcount = ntohs(hp->qdcount); in getanswer()
2149 HEADER *hp; in res_queryN() local
2166 hp = (HEADER *)(void *)t->answer; in res_queryN()
2167 hp->rcode = NOERROR; /* default */ in res_queryN()
2205 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2206 rcode = hp->rcode; /* record most recent error */ in res_queryN()
2209 printf(";; rcode = %u, ancount=%u\n", hp->rcode, in res_queryN()
2210 ntohs(hp->ancount)); in res_queryN()
2215 ancount += ntohs(hp->ancount); in res_queryN()
2253 HEADER *hp; in res_searchN() local
2261 hp = (HEADER *)(void *)target->answer; /*XXX*/ in res_searchN()
2346 if (hp->rcode == SERVFAIL) { in res_searchN()