diff options
author | 1998-09-22 22:03:00 +0000 | |
---|---|---|
committer | 1998-09-22 22:03:00 +0000 | |
commit | 47b987cd7e91f252a9d70de3fcb0f9706e775ca6 (patch) | |
tree | 7c543beb1ed4d6d96c5d021b6025b62900b6e66e /usr.sbin/tcpdump/tcpdump.c | |
parent | MI ep man page (diff) | |
download | wireguard-openbsd-47b987cd7e91f252a9d70de3fcb0f9706e775ca6.tar.xz wireguard-openbsd-47b987cd7e91f252a9d70de3fcb0f9706e775ca6.zip |
make tcpdump aware of SACK (RFC 2018), loosely based on a patch from
hari@cs.berkeley.edu.
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-rw-r--r-- | usr.sbin/tcpdump/tcpdump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index 5d34eac195c..aafe86c3420 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -24,7 +24,7 @@ static const char copyright[] = "@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996\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.10 1998/06/25 19:42:48 mickey Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.11 1998/09/22 22:03:02 provos Exp $ (LBL)"; #endif /* @@ -235,6 +235,8 @@ main(int argc, char **argv) packettype = PT_RTCP; else if (strcasecmp(optarg, "cnfp") == 0) packettype = PT_CNFP; + else if (strcasecmp(optarg, "sack") == 0) + snaplen = SACK_SNAPLEN; else error("unknown packet type `%s'", optarg); break; |