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