summaryrefslogtreecommitdiff
path: root/print-ipfc.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-ipfc.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-ipfc.c')
-rw-r--r--print-ipfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ipfc.c b/print-ipfc.c
index cf3f5626..e19d9791 100644
--- a/print-ipfc.c
+++ b/print-ipfc.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-ipfc.c,v 1.7 2004-03-17 23:24:37 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-ipfc.c,v 1.8 2005-07-07 01:22:19 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -117,7 +117,7 @@ ipfc_print(const u_char *p, u_int length, u_int caplen)
printf("(LLC %s) ",
etherproto_string(htons(extracted_ethertype)));
}
- if (!xflag && !qflag)
+ if (!suppress_default_print)
default_print(p, caplen);
}
}