• Home
  • Raw
  • Download

Lines Matching refs:dbprint

137 static char* dbprint(char* p, char* end, const char* format, ...) {  in dbprint()  function
172 dbprint(p, end, ";; memory allocation failure\n"); in do_section()
182 dbprint(p, end, ";; ns_parserr: %s", strerror(errno)); in do_section()
186 dbprint(p, end, ";;\t%s, type = %s, class = %s\n", ns_rr_name(rr), in do_section()
194 dbprint(p, end, "; EDNS: version: %zu, udp=%u, flags=%04zx\n", (ttl >> 16) & 0xff, in do_section()
204 p = dbprint(p, end, "; NSID: "); in do_section()
206 p = dbprint(p, end, "; NSID\n"); in do_section()
208 p = dbprint(p, end, "; NSID: "); in do_section()
210 p = dbprint(p, end, "%02x ", cp[i]); in do_section()
212 p = dbprint(p, end, " ("); in do_section()
214 p = dbprint(p, end, "%c", isprint(cp[i]) ? cp[i] : '.'); in do_section()
216 p = dbprint(p, end, ")\n"); in do_section()
220 p = dbprint(p, end, "; OPT=%u\n", optcode); in do_section()
222 p = dbprint(p, end, "; OPT=%u: ", optcode); in do_section()
224 p = dbprint(p, end, "%02x ", cp[i]); in do_section()
226 p = dbprint(p, end, " ("); in do_section()
228 p = dbprint(p, end, "%c", isprint(cp[i]) ? cp[i] : '.'); in do_section()
230 p = dbprint(p, end, ")\n"); in do_section()
246 p = dbprint(p, end, ";; memory allocation failure\n"); in do_section()
252 p = dbprint(p, end, ";; ns_sprintrr: %s\n", strerror(errno)); in do_section()
255 p = dbprint(p, end, ";; %s\n", buf); in do_section()
277 dbprint(p, end, ";; ns_initparse: %s\n", strerror(errno)); in res_pquery()
291 dbprint(p, end, ";; ->>HEADER<<- opcode: %s, status: %s, id: %d\n", _res_opcodes[opcode], in res_pquery()
293 p = dbprint(p, end, ";"); in res_pquery()
294 p = dbprint(p, end, "; flags:"); in res_pquery()
295 if (ns_msg_getflag(handle, ns_f_qr)) p = dbprint(p, end, " qr"); in res_pquery()
296 if (ns_msg_getflag(handle, ns_f_aa)) p = dbprint(p, end, " aa"); in res_pquery()
297 if (ns_msg_getflag(handle, ns_f_tc)) p = dbprint(p, end, " tc"); in res_pquery()
298 if (ns_msg_getflag(handle, ns_f_rd)) p = dbprint(p, end, " rd"); in res_pquery()
299 if (ns_msg_getflag(handle, ns_f_ra)) p = dbprint(p, end, " ra"); in res_pquery()
300 if (ns_msg_getflag(handle, ns_f_z)) p = dbprint(p, end, " ??"); in res_pquery()
301 if (ns_msg_getflag(handle, ns_f_ad)) p = dbprint(p, end, " ad"); in res_pquery()
302 if (ns_msg_getflag(handle, ns_f_cd)) p = dbprint(p, end, " cd"); in res_pquery()
303 p = dbprint(p, end, "; %s: %d", p_section(ns_s_qd, (int)opcode), qdcount); in res_pquery()
304 p = dbprint(p, end, ", %s: %d", p_section(ns_s_an, (int)opcode), ancount); in res_pquery()
305 p = dbprint(p, end, ", %s: %d", p_section(ns_s_ns, (int)opcode), nscount); in res_pquery()
306 p = dbprint(p, end, ", %s: %d", p_section(ns_s_ar, (int)opcode), arcount); in res_pquery()