Lines Matching refs:hp
106 register HEADER *hp;
112 hp = (HEADER *)msg;
115 fprintf(file, "\topcode = %s", _res_opcodes[hp->opcode]);
116 fprintf(file, ", id = %d", ntohs(hp->id));
117 fprintf(file, ", rcode = %s\n", _res_resultcodes[hp->rcode]);
119 if (hp->qr)
121 if (hp->aa)
123 if (hp->tc)
125 if (hp->rd)
127 if (hp->ra)
129 if (hp->pr)
131 fprintf(file, "\n\tqdcount = %d", ntohs(hp->qdcount));
132 fprintf(file, ", ancount = %d", ntohs(hp->ancount));
133 fprintf(file, ", nscount = %d", ntohs(hp->nscount));
134 fprintf(file, ", arcount = %d\n\n", ntohs(hp->arcount));
138 if (n = ntohs(hp->qdcount)) {
155 if (n = ntohs(hp->ancount)) {
167 if (n = ntohs(hp->nscount)) {
179 if (n = ntohs(hp->arcount)) {