Op Tue, 30 Mar 2021 12:15:42 +0200 schreef Boudewijn Dijkstra <mailinglists.boudew...@indes.com>:
Both asr_private.h and asr_utils.c have mname before rname but not asr_debug.c.

And another thing while we're here: since 2019 the flag RES_USE_CD exists, but this was never added to asr_debug.c. New patch follows.

Index: asr_debug.c
===================================================================
RCS file: /cvs/src/lib/libc/asr/asr_debug.c,v
retrieving revision 1.26
diff -u -p -r1.26 asr_debug.c
--- asr_debug.c 3 Jul 2019 03:24:03 -0000       1.26
+++ asr_debug.c 1 Apr 2021 12:02:17 -0000
@@ -101,8 +101,8 @@ print_rr(const struct asr_dns_rr *rr, ch
                break;
        case T_SOA:
                snprintf(buf, max, "%s %s %lu %lu %lu %lu %lu",
-                   print_dname(rr->rr.soa.rname, tmp, sizeof tmp),
-                   print_dname(rr->rr.soa.mname, tmp2, sizeof tmp2),
+                   print_dname(rr->rr.soa.mname, tmp, sizeof tmp),
+                   print_dname(rr->rr.soa.rname, tmp2, sizeof tmp2),
                    (unsigned long)rr->rr.soa.serial,
                    (unsigned long)rr->rr.soa.refresh,
                    (unsigned long)rr->rr.soa.retry,
@@ -285,6 +285,7 @@ _asr_dump_config(FILE *f, struct asr *a)
        PRINTOPT(RES_NOALIASES, "NOALIASES");
        PRINTOPT(RES_USE_EDNS0, "USE_EDNS0");
        PRINTOPT(RES_USE_DNSSEC, "USE_DNSSEC");
+       PRINTOPT(RES_USE_CD, "USE_CD");
        if (o)
                fprintf(f, " 0x%08x", o);
        fprintf(f, "\n");


--
Gemaakt met Opera's e-mailprogramma: http://www.opera.com/mail/

Reply via email to