summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/tcpdump.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2005-05-28 09:01:52 +0000
committerreyk <reyk@openbsd.org>2005-05-28 09:01:52 +0000
commitb72abdefae539632aae014b1a9b7d3fe022894a0 (patch)
treebadbb73adbc6af29b751b329b32f1202eb6d7352 /usr.sbin/tcpdump/tcpdump.c
parentwhoops. the import killed the $Id$ tags; rectify. (diff)
downloadwireguard-openbsd-b72abdefae539632aae014b1a9b7d3fe022894a0.tar.xz
wireguard-openbsd-b72abdefae539632aae014b1a9b7d3fe022894a0.zip
support decapsulation of 802.11 data frames
ok canacar@
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-rw-r--r--usr.sbin/tcpdump/tcpdump.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c
index cf6f18e62c1..4b1fa2180b6 100644
--- a/usr.sbin/tcpdump/tcpdump.c
+++ b/usr.sbin/tcpdump/tcpdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpdump.c,v 1.45 2005/05/22 18:41:34 moritz Exp $ */
+/* $OpenBSD: tcpdump.c,v 1.46 2005/05/28 09:01:52 reyk 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.45 2005/05/22 18:41:34 moritz Exp $ (LBL)";
+ "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.46 2005/05/28 09:01:52 reyk Exp $ (LBL)";
#endif
/*
@@ -451,8 +451,11 @@ main(int argc, char **argv)
if (snaplen == 0) {
switch (dlt) {
+ case DLT_IEEE802_11:
+ snaplen = IEEE802_11_SNAPLEN;
+ break;
case DLT_IEEE802_11_RADIO:
- snaplen = RADIOTAP_SNAPLEN;
+ snaplen = IEEE802_11_RADIO_SNAPLEN;
break;
default:
snaplen = DEFAULT_SNAPLEN;