diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-04-28 02:17:04 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-04-28 02:17:04 +0000 |
commit | d43f1ae6983caef2bca69f007df44cee540a7e55 (patch) | |
tree | a070360c4b40c94217fdc456d0dca1c0f5aea038 /usr.sbin/tcpdump/tcpdump.c | |
parent | 9626e4bf453e82f99cdd57d1a22669fa8df0ebfc (diff) |
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.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index ac3fb064849..38768b88fb5 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: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.35 2004/01/28 19:44:55 canacar Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/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 |