Lines Matching refs:handle

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