Lines Matching defs:handle
146 ns_msg *handle, ns_sect section,
168 opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode);
171 if (ns_parserr(handle, section, rrnum, &rr)) {
240 n = ns_sprintrr(handle, &rr, NULL, NULL,
275 ns_msg handle;
279 if (ns_initparse(msg, len, &handle) < 0) {
283 opcode = ns_msg_getflag(handle, ns_f_opcode);
284 rcode = ns_msg_getflag(handle, ns_f_rcode);
285 id = ns_msg_id(handle);
286 qdcount = ns_msg_count(handle, ns_s_qd);
287 ancount = ns_msg_count(handle, ns_s_an);
288 nscount = ns_msg_count(handle, ns_s_ns);
289 arcount = ns_msg_count(handle, ns_s_ar);
302 if (ns_msg_getflag(handle, ns_f_qr))
304 if (ns_msg_getflag(handle, ns_f_aa))
306 if (ns_msg_getflag(handle, ns_f_tc))
308 if (ns_msg_getflag(handle, ns_f_rd))
310 if (ns_msg_getflag(handle, ns_f_ra))
312 if (ns_msg_getflag(handle, ns_f_z))
314 if (ns_msg_getflag(handle, ns_f_ad))
316 if (ns_msg_getflag(handle, ns_f_cd))
336 do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file);
337 do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file);
338 do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file);
339 do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file);