diff options
author | guy <guy> | 2003-11-05 06:02:58 +0000 |
---|---|---|
committer | guy <guy> | 2003-11-05 06:02:58 +0000 |
commit | f4d64fe38b9b7213a486eac4a18c3c434e1cccc8 (patch) | |
tree | b9ffe2374cdf60558f40f448c21bea950d9f98f4 /print-udp.c | |
parent | 8f34a01034446e63b7ceec8267f6a1e04b167cbf (diff) | |
download | tcpdump-f4d64fe38b9b7213a486eac4a18c3c434e1cccc8.tar.gz |
In mDNS, report IN-class records with the "cache flush" bit set as such,
rather than as "Class 32769".
Diffstat (limited to 'print-udp.c')
-rw-r--r-- | print-udp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/print-udp.c b/print-udp.c index 2bf77d4b..2888a6d7 100644 --- a/print-udp.c +++ b/print-udp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.123 2003-10-27 22:44:37 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.124 2003-11-05 06:03:01 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -599,8 +599,10 @@ udp_print(register const u_char *bp, u_int length, if (!qflag) { #define ISPORT(p) (dport == (p) || sport == (p)) - if (ISPORT(NAMESERVER_PORT) || ISPORT(MULTICASTDNS_PORT)) - ns_print((const u_char *)(up + 1), length); + if (ISPORT(NAMESERVER_PORT)) + ns_print((const u_char *)(up + 1), length, 0); + else if (ISPORT(MULTICASTDNS_PORT)) + ns_print((const u_char *)(up + 1), length, 1); else if (ISPORT(TIMED_PORT)) timed_print((const u_char *)(up + 1)); else if (ISPORT(TFTP_PORT)) |