Lines Matching refs:handle
160 ns_msg *handle, ns_sect section,
182 opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode);
185 if (ns_parserr(handle, section, rrnum, &rr)) {
208 n = ns_sprintrr(handle, &rr, NULL, NULL,
243 ns_msg handle;
247 if (ns_initparse(msg, len, &handle) < 0) {
251 opcode = ns_msg_getflag(handle, ns_f_opcode);
252 rcode = ns_msg_getflag(handle, ns_f_rcode);
253 id = ns_msg_id(handle);
254 qdcount = ns_msg_count(handle, ns_s_qd);
255 ancount = ns_msg_count(handle, ns_s_an);
256 nscount = ns_msg_count(handle, ns_s_ns);
257 arcount = ns_msg_count(handle, ns_s_ar);
270 if (ns_msg_getflag(handle, ns_f_qr))
272 if (ns_msg_getflag(handle, ns_f_aa))
274 if (ns_msg_getflag(handle, ns_f_tc))
276 if (ns_msg_getflag(handle, ns_f_rd))
278 if (ns_msg_getflag(handle, ns_f_ra))
280 if (ns_msg_getflag(handle, ns_f_z))
282 if (ns_msg_getflag(handle, ns_f_ad))
284 if (ns_msg_getflag(handle, ns_f_cd))
304 do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file);
305 do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file);
306 do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file);
307 do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file);