diff options
author | 2004-09-16 11:29:51 +0000 | |
---|---|---|
committer | 2004-09-16 11:29:51 +0000 | |
commit | a9ca1c711f33f53fcde8594b8eb5e9f556278ba5 (patch) | |
tree | 2b0f10af67598370db218411a648c30583f38ba2 /usr.sbin/tcpdump/tcpdump.c | |
parent | nfs v3 support from tcpdump.org/netbsd; tests with pedro, marius (diff) | |
download | wireguard-openbsd-a9ca1c711f33f53fcde8594b8eb5e9f556278ba5.tar.xz wireguard-openbsd-a9ca1c711f33f53fcde8594b8eb5e9f556278ba5.zip |
add -T tcp to enforce interpretation as TCP
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 e2dc77f5dba..bf02608a40f 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpdump.c,v 1.38 2004/06/20 17:51:55 avsm Exp $ */ +/* $OpenBSD: tcpdump.c,v 1.39 2004/09/16 11:29:51 markus 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.38 2004/06/20 17:51:55 avsm Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.39 2004/09/16 11:29:51 markus Exp $ (LBL)"; #endif /* @@ -284,6 +284,8 @@ main(int argc, char **argv) packettype = PT_CNFP; else if (strcasecmp(optarg, "vrrp") == 0) packettype = PT_VRRP; + else if (strcasecmp(optarg, "tcp") == 0) + packettype = PT_TCP; else if (strcasecmp(optarg, "sack") == 0) snaplen = SACK_SNAPLEN; else |