summaryrefslogtreecommitdiff
path: root/print-symantec.c
diff options
context:
space:
mode:
authorguy <guy>2005-07-07 01:22:15 +0000
committerguy <guy>2005-07-07 01:22:15 +0000
commitd953299b94043156cab202c486dc5b864f71c633 (patch)
treed9178547cd73d7a9716b8dd080f202b9b7218553 /print-symantec.c
parente085b97e4b488bfd158529331e20ebaeb2b79f0f (diff)
downloadtcpdump-d953299b94043156cab202c486dc5b864f71c633.tar.gz
Add a flag to suppress the "default_print()" call made in various
link-layer print routines if no other print routine claimed the packet. Test whether that flag is set rather than testing whether neither of -x or -q were specified, and have -x, -q, *and* -X set that flag, so that -X suppresses it just as -x does. That way you don't get those pckets dumped twice if -X was specified.
Diffstat (limited to 'print-symantec.c')
-rw-r--r--print-symantec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-symantec.c b/print-symantec.c
index ec5f02e1..ebb62cd4 100644
--- a/print-symantec.c
+++ b/print-symantec.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-symantec.c,v 1.4 2004-04-05 00:13:59 mcr Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-symantec.c,v 1.5 2005-07-07 01:22:21 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -105,7 +105,7 @@ symantec_if_print(const struct pcap_pkthdr *h, const u_char *p)
if (!eflag)
symantec_hdr_print((u_char *)sp, length + sizeof (struct symantec_header));
- if (!xflag && !qflag)
+ if (!suppress_default_print)
default_print(p, caplen);
} else if (ether_encap_print(ether_type, p, length, caplen,
&extracted_ether_type) == 0) {
@@ -113,7 +113,7 @@ symantec_if_print(const struct pcap_pkthdr *h, const u_char *p)
if (!eflag)
symantec_hdr_print((u_char *)sp, length + sizeof (struct symantec_header));
- if (!xflag && !qflag)
+ if (!suppress_default_print)
default_print(p, caplen);
}