Lines Matching defs:hp
1312 const HEADER *hp;
1344 hp = &answer->hdr;
1345 ancount = ntohs(hp->ancount);
1346 qdcount = ntohs(hp->qdcount);
2155 HEADER *hp;
2172 hp = (HEADER *)(void *)t->answer;
2173 hp->rcode = NOERROR; /* default */
2211 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
2212 rcode = hp->rcode; /* record most recent error */
2215 printf(";; rcode = %u, ancount=%u\n", hp->rcode,
2216 ntohs(hp->ancount));
2221 ancount += ntohs(hp->ancount);
2259 HEADER *hp;
2267 hp = (HEADER *)(void *)target->answer; /*XXX*/
2352 if (hp->rcode == SERVFAIL) {