Lines Matching refs:handle

158 	   ns_msg *handle, ns_sect section,  in do_section()  argument
180 opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode); in do_section()
183 if (ns_parserr(handle, section, rrnum, &rr)) { in do_section()
253 n = ns_sprintrr(handle, &rr, NULL, NULL, in do_section()
288 ns_msg handle; in res_pquery() local
292 if (ns_initparse(msg, len, &handle) < 0) { in res_pquery()
296 opcode = ns_msg_getflag(handle, ns_f_opcode); in res_pquery()
297 rcode = ns_msg_getflag(handle, ns_f_rcode); in res_pquery()
298 id = ns_msg_id(handle); in res_pquery()
299 qdcount = ns_msg_count(handle, ns_s_qd); in res_pquery()
300 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
301 nscount = ns_msg_count(handle, ns_s_ns); in res_pquery()
302 arcount = ns_msg_count(handle, ns_s_ar); in res_pquery()
315 if (ns_msg_getflag(handle, ns_f_qr)) in res_pquery()
317 if (ns_msg_getflag(handle, ns_f_aa)) in res_pquery()
319 if (ns_msg_getflag(handle, ns_f_tc)) in res_pquery()
321 if (ns_msg_getflag(handle, ns_f_rd)) in res_pquery()
323 if (ns_msg_getflag(handle, ns_f_ra)) in res_pquery()
325 if (ns_msg_getflag(handle, ns_f_z)) in res_pquery()
327 if (ns_msg_getflag(handle, ns_f_ad)) in res_pquery()
329 if (ns_msg_getflag(handle, ns_f_cd)) in res_pquery()
349 do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file); in res_pquery()
350 do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file); in res_pquery()
351 do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file); in res_pquery()
352 do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file); in res_pquery()