diff options
author | Roland McGrath <roland@gnu.org> | 1995-12-07 19:37:55 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-12-07 19:37:55 +0000 |
commit | a4219bc4c0da2ca06c8edc2c62664c7883b8dbff (patch) | |
tree | 3854926df2908f20cc5d158f6ffaa14a6bd0faa8 /resolv/res_debug.c | |
parent | 0c7b844d256598d5fda1692894fc769ca9f18450 (diff) | |
download | glibc-a4219bc4c0da2ca06c8edc2c62664c7883b8dbff.tar.gz glibc-a4219bc4c0da2ca06c8edc2c62664c7883b8dbff.tar.xz glibc-a4219bc4c0da2ca06c8edc2c62664c7883b8dbff.zip |
Updated from BIND-4.9.3-BETA27.
Diffstat (limited to 'resolv/res_debug.c')
-rw-r--r-- | resolv/res_debug.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/resolv/res_debug.c b/resolv/res_debug.c index 602042e198..c5e68e36e9 100644 --- a/resolv/res_debug.c +++ b/resolv/res_debug.c @@ -309,6 +309,7 @@ __fp_nquery(msg, len, file) ntohs(hp->id)); putc('\n', file); } + if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEADX)) putc(';', file); if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEAD2)) { fprintf(file, "; flags:"); @@ -340,9 +341,21 @@ __fp_nquery(msg, len, file) if ((!_res.pfcode) || (_res.pfcode & RES_PRF_QUES)) fprintf(file, ";; QUESTIONS:\n"); while (--n >= 0) { + if ((!_res.pfcode) || (_res.pfcode & RES_PRF_QUES)) fprintf(file, ";;\t"); TruncTest(cp); + if ((!_res.pfcode) || (_res.pfcode & RES_PRF_QUES)) cp = p_cdnname(cp, msg, len, file); + else { + int n; + char name[MAXDNAME]; + + if ((n = dn_expand(msg, msg+len, cp, name, + sizeof name)) < 0) + cp = NULL; + else + cp += n; + } ErrorTest(cp); TruncTest(cp); if ((!_res.pfcode) || (_res.pfcode & RES_PRF_QUES)) @@ -354,6 +367,7 @@ __fp_nquery(msg, len, file) fprintf(file, ", class = %s\n", __p_class(_getshort((u_char*)cp))); cp += INT16SZ; + if ((!_res.pfcode) || (_res.pfcode & RES_PRF_QUES)) putc('\n', file); } } |