Lines Matching defs:handle
170 ns_msg *handle, ns_sect section,
192 opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode);
195 if (ns_parserr(handle, section, rrnum, &rr)) {
264 n = ns_sprintrr(handle, &rr, NULL, NULL,
299 ns_msg handle;
303 if (ns_initparse(msg, len, &handle) < 0) {
307 opcode = ns_msg_getflag(handle, ns_f_opcode);
308 rcode = ns_msg_getflag(handle, ns_f_rcode);
309 id = ns_msg_id(handle);
310 qdcount = ns_msg_count(handle, ns_s_qd);
311 ancount = ns_msg_count(handle, ns_s_an);
312 nscount = ns_msg_count(handle, ns_s_ns);
313 arcount = ns_msg_count(handle, ns_s_ar);
326 if (ns_msg_getflag(handle, ns_f_qr))
328 if (ns_msg_getflag(handle, ns_f_aa))
330 if (ns_msg_getflag(handle, ns_f_tc))
332 if (ns_msg_getflag(handle, ns_f_rd))
334 if (ns_msg_getflag(handle, ns_f_ra))
336 if (ns_msg_getflag(handle, ns_f_z))
338 if (ns_msg_getflag(handle, ns_f_ad))
340 if (ns_msg_getflag(handle, ns_f_cd))
360 do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file);
361 do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file);
362 do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file);
363 do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file);