summaryrefslogtreecommitdiff
path: root/print-domain.c
diff options
context:
space:
mode:
authorguy <guy>2003-09-25 22:30:22 +0000
committerguy <guy>2003-09-25 22:30:22 +0000
commit454da6698381af918b5ec804874c8ca934b02817 (patch)
tree31d9c4672ed51752e31b14ee9462a5f6ea24a3da /print-domain.c
parent563344d11781660bf34ac611ab8d690272ca99e7 (diff)
downloadtcpdump-454da6698381af918b5ec804874c8ca934b02817.tar.gz
From Scott Rose <syberpunk@users.sourceforge.net>:
The test for DNS message dnssec bit flags in the query and response are backwards. The CD bit has meaning in a query, and the AD bit has meaning in a response.
Diffstat (limited to 'print-domain.c')
-rw-r--r--print-domain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-domain.c b/print-domain.c
index 0ffa872d..6173521d 100644
--- a/print-domain.c
+++ b/print-domain.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-domain.c,v 1.84 2003-04-04 03:49:25 fenner Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-domain.c,v 1.85 2003-09-25 22:30:22 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -542,7 +542,7 @@ ns_print(register const u_char *bp, u_int length)
DNS_AA(np)? "*" : "",
DNS_RA(np)? "" : "-",
DNS_TC(np)? "|" : "",
- DNS_CD(np)? "%" : "");
+ DNS_AD(np)? "$" : "");
if (qdcount != 1)
printf(" [%dq]", qdcount);
@@ -605,7 +605,7 @@ ns_print(register const u_char *bp, u_int length)
/* this is a request */
printf(" %d%s%s%s", EXTRACT_16BITS(&np->id), ns_ops[DNS_OPCODE(np)],
DNS_RD(np) ? "+" : "",
- DNS_AD(np) ? "$" : "");
+ DNS_CD(np) ? "%" : "");
/* any weirdness? */
b2 = EXTRACT_16BITS(((u_short *)np)+1);