diff options
author | eric <eric@openbsd.org> | 2021-04-02 07:00:30 +0000 |
---|---|---|
committer | eric <eric@openbsd.org> | 2021-04-02 07:00:30 +0000 |
commit | e6029de668dca0b152b977dcfb59dc86d3340856 (patch) | |
tree | 5aa79cb80553685cc5eeb80bdb2902f549d0ff83 /lib/libc/asr/asr_debug.c | |
parent | configyyrename.h is no longer needed with the switch to flex -P c_. (diff) | |
download | wireguard-openbsd-e6029de668dca0b152b977dcfb59dc86d3340856.tar.xz wireguard-openbsd-e6029de668dca0b152b977dcfb59dc86d3340856.zip |
swap rname and mname in debug output, and handle the USE_CD flag
from Boudewijn Dijkstra
Diffstat (limited to '')
-rw-r--r-- | lib/libc/asr/asr_debug.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/asr/asr_debug.c b/lib/libc/asr/asr_debug.c index 9fc5857ebde..f9378d156b7 100644 --- a/lib/libc/asr/asr_debug.c +++ b/lib/libc/asr/asr_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asr_debug.c,v 1.26 2019/07/03 03:24:03 deraadt Exp $ */ +/* $OpenBSD: asr_debug.c,v 1.27 2021/04/02 07:00:30 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -101,8 +101,8 @@ print_rr(const struct asr_dns_rr *rr, char *buf, size_t max) 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"); |