Lines Matching refs:hp
835 const HEADER* hp; in getanswer() local
866 hp = &answer->hdr; in getanswer()
867 ancount = ntohs(hp->ancount); in getanswer()
868 qdcount = ntohs(hp->qdcount); in getanswer()
1574 HEADER* hp; in res_queryN() local
1590 hp = (HEADER*) (void*) t->answer; in res_queryN()
1593 hp->rcode = NOERROR; /* default */ in res_queryN()
1613 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
1616 if (rcode != RCODE_TIMEOUT) rcode = hp->rcode; /* record most recent error */ in res_queryN()
1624 LOG(DEBUG) << __func__ << ": rcode=" << hp->rcode << ", ancount=" << ntohs(hp->ancount); in res_queryN()
1628 ancount += ntohs(hp->ancount); in res_queryN()
1670 HEADER* hp; in res_searchN() local
1678 hp = (HEADER*) (void*) target->answer; /*XXX*/ in res_searchN()
1745 if (hp->rcode == SERVFAIL) { in res_searchN()