summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/tcpdump.c
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2004-04-28 02:17:03 +0000
committermcbride <mcbride@openbsd.org>2004-04-28 02:17:03 +0000
commit05c07c4656f0f1ebcd0093599dde545537ccae72 (patch)
tree10e66567c8e4f1e02ed3be2a77d8ec24a75ec3f7 /usr.sbin/tcpdump/tcpdump.c
parentcarp stats cleanup: (diff)
downloadwireguard-openbsd-05c07c4656f0f1ebcd0093599dde545537ccae72.tar.xz
wireguard-openbsd-05c07c4656f0f1ebcd0093599dde545537ccae72.zip
Make tcpdump print carp as carp. Printing vrrp can be forced with -T vrrp.
ok markus@ pb@
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-rw-r--r--usr.sbin/tcpdump/tcpdump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c
index 3bb8959f5ef..c536d7658f2 100644
--- a/usr.sbin/tcpdump/tcpdump.c
+++ b/usr.sbin/tcpdump/tcpdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpdump.c,v 1.35 2004/01/28 19:44:55 canacar Exp $ */
+/* $OpenBSD: tcpdump.c,v 1.36 2004/04/28 02:17:03 mcbride Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -26,7 +26,7 @@ static const char copyright[] =
"@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997\n\
The Regents of the University of California. All rights reserved.\n";
static const char rcsid[] =
- "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.35 2004/01/28 19:44:55 canacar Exp $ (LBL)";
+ "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.36 2004/04/28 02:17:03 mcbride Exp $ (LBL)";
#endif
/*
@@ -281,6 +281,8 @@ main(int argc, char **argv)
packettype = PT_RTCP;
else if (strcasecmp(optarg, "cnfp") == 0)
packettype = PT_CNFP;
+ else if (strcasecmp(optarg, "vrrp") == 0)
+ packettype = PT_VRRP;
else if (strcasecmp(optarg, "sack") == 0)
snaplen = SACK_SNAPLEN;
else