Lines Matching defs:handle
150 ns_msg *handle, ns_sect section,
172 opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode);
175 if (ns_parserr(handle, section, rrnum, &rr)) {
245 n = ns_sprintrr(handle, &rr, NULL, NULL,
280 ns_msg handle;
284 if (ns_initparse(msg, len, &handle) < 0) {
288 opcode = ns_msg_getflag(handle, ns_f_opcode);
289 rcode = ns_msg_getflag(handle, ns_f_rcode);
290 id = ns_msg_id(handle);
291 qdcount = ns_msg_count(handle, ns_s_qd);
292 ancount = ns_msg_count(handle, ns_s_an);
293 nscount = ns_msg_count(handle, ns_s_ns);
294 arcount = ns_msg_count(handle, ns_s_ar);
307 if (ns_msg_getflag(handle, ns_f_qr))
309 if (ns_msg_getflag(handle, ns_f_aa))
311 if (ns_msg_getflag(handle, ns_f_tc))
313 if (ns_msg_getflag(handle, ns_f_rd))
315 if (ns_msg_getflag(handle, ns_f_ra))
317 if (ns_msg_getflag(handle, ns_f_z))
319 if (ns_msg_getflag(handle, ns_f_ad))
321 if (ns_msg_getflag(handle, ns_f_cd))
341 do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file);
342 do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file);
343 do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file);
344 do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file);