OpenBSD CVS

CVS log for src/usr.sbin/tcpdump/print-802_11.c


[BACK] Up to [local] / src / usr.sbin / tcpdump

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.44 / (download) - annotate - [select for diffs], Fri Jul 22 20:37:56 2022 UTC (22 months, 2 weeks ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

In tcpdump(8), fix use of wrong index into 802.11 PMKID data when multiple
PMKIDs are present. Same error as found by Mikhail for ciphers and AKMs.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jul 22 20:31:45 2022 UTC (22 months, 2 weeks ago) by stsp
Branch: MAIN
Changes since 1.42: +8 -5 lines
Diff to previous 1.42 (colored)

In tcpdump(8), fix printing of multiple 802.11 RSN ciphers and AKMs.

Also, pretty-print SAE (used by WPA3) if found in AKMs.

Errors introduced by me in CVS commit hgtOdzeJfB27Yyq0 / r1.40.
Patch by Mikhail

Revision 1.42 / (download) - annotate - [select for diffs], Thu Mar 17 14:00:53 2022 UTC (2 years, 2 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.41: +206 -1 lines
Diff to previous 1.41 (colored)

Make tcpdump(8) show 802.11ac VHT capability and operation IEs in -v mode.

ok sthen@

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jun 28 14:35:42 2021 UTC (2 years, 11 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored)

Have tcpdump split the 802.11 sequence number field into its sequence number
and fragment number components instead of printing the whole field in decimal.

ok sthen@ kn@ jca@

Revision 1.40 / (download) - annotate - [select for diffs], Fri Sep 1 14:04:49 2017 UTC (6 years, 9 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.39: +192 -2 lines
Diff to previous 1.39 (colored)

Make 'tcpdump -v' decode RSN information elements in beacons
instead of lazily dumping them in hex.
ok mpi@

Revision 1.39 / (download) - annotate - [select for diffs], Sat Mar 4 17:51:20 2017 UTC (7 years, 3 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.38: +20 -9 lines
Diff to previous 1.38 (colored)

Make tcpdump show HT protection settings consistently. Previously, nothing
was displayed if HT protection was disabled. Now it displays as "htprot none".
ok sthen@

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jan 29 15:16:14 2017 UTC (7 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Fix tcpdump(8) display of duration values provided in 802.11 control frames.
These values are in microseconds, not milliseconds.
ok sthen@

Revision 1.37 / (download) - annotate - [select for diffs], Sun Dec 18 11:15:02 2016 UTC (7 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.36: +1 -4 lines
Diff to previous 1.36 (colored)

Remove duplicated lines of code introduced in my previous tcpdump commit.
Noticed by claudio@

Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 18 10:38:01 2016 UTC (7 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.35: +7 -2 lines
Diff to previous 1.35 (colored)

Make tcpdump show "11n" for a channel which is used in 11n mode.
ok mpi@

Revision 1.35 / (download) - annotate - [select for diffs], Sat Nov 19 19:35:46 2016 UTC (7 years, 6 months ago) by stsp
Branch: MAIN
Changes since 1.34: +5 -3 lines
Diff to previous 1.34 (colored)

Make tcpdump indicate basic rates listed in beacons with an asterisk.
ok tb@

Revision 1.34 / (download) - annotate - [select for diffs], Sat Oct 8 14:45:11 2016 UTC (7 years, 8 months ago) by stsp
Branch: MAIN
Changes since 1.33: +8 -3 lines
Diff to previous 1.33 (colored)

Make tcpdump show MCS stored in radiotap's rate field.
ok kettenis@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 2 17:11:46 2016 UTC (7 years, 9 months ago) by stsp
Branch: MAIN
Changes since 1.32: +61 -17 lines
Diff to previous 1.32 (colored)

Make tcpdump print details about association requests in verbose mode.
Refactor such that we can share some of the code for beacon printing.
ok sthen@

Revision 1.32 / (download) - annotate - [select for diffs], Sun Feb 21 16:09:47 2016 UTC (8 years, 3 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

Make tcpdump show details of beacon country elements in verbose mode only.
ok sthen@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Feb 4 10:58:48 2016 UTC (8 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

Fix an infinite loop when printing a country element in a management
frame in case we hit channel Tx power limits we can't pretty-print.
Also ensure we consume the last item in this list.
ok sthen@

Revision 1.30 / (download) - annotate - [select for diffs], Wed Feb 3 16:08:09 2016 UTC (8 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.29: +84 -1 lines
Diff to previous 1.29 (colored)

Make tcpdump show 802.11 control frames.
ok kettenis@, and help from David Vasek (thanks!)

Revision 1.29 / (download) - annotate - [select for diffs], Mon Feb 1 10:09:44 2016 UTC (8 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.28: +35 -11 lines
Diff to previous 1.28 (colored)

Make tcpdump show 802.11 QoS frames properly.
ok kettenis@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jan 12 09:28:10 2016 UTC (8 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.27: +1 -3 lines
Diff to previous 1.27 (colored)

Remove wireless turbo mode support. It is a non-standard extension
which only worked with ath(4) devices from a decade ago.
Diff tested on ath(4) hardware by me to verify that 11a/b modes still work.
ok reyk deraadt chris sthen kettenis

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 13 14:36:15 2015 UTC (8 years, 7 months ago) by stsp
Branch: MAIN
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 (colored)

Don't use exp2f(), it breaks build on vax. Use a shift instead.
reported by deraadt@

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 12 13:01:50 2015 UTC (8 years, 7 months ago) by stsp
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Fix a copy-pasto: Check the correct bit for STBC beacon in HT OP element.
ok sthen@

Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 10 07:52:30 2015 UTC (8 years, 8 months ago) by stsp
Branch: MAIN
Changes since 1.24: +83 -2 lines
Diff to previous 1.24 (colored)

Make tcpdump(1) print more information from the HT Capabilities element.
tweak + ok sthen@

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jul 19 02:49:54 2015 UTC (8 years, 10 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.23: +21 -7 lines
Diff to previous 1.23 (colored)

In tcpdump, show 11n HTOP primary and secondary channel numbers for 40MHz BSS,
instead of showing just the primary one and "above" or "below" for secondary.
ok sthen

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jul 18 23:35:01 2015 UTC (8 years, 10 months ago) by stsp
Branch: MAIN
Changes since 1.22: +105 -1 lines
Diff to previous 1.22 (colored)

Make tcpdump show HTOP elements in 11n management frames; ok sthen@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 17 19:43:43 2015 UTC (8 years, 10 months ago) by stsp
Branch: MAIN
Changes since 1.21: +49 -3 lines
Diff to previous 1.21 (colored)

Make tcpdump decode the country element in 802.11 mgmt frames.
much help and ok zhuk@, ok sthen@ for an earlier version

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jul 17 17:41:41 2015 UTC (8 years, 10 months ago) by stsp
Branch: MAIN
Changes since 1.20: +9 -1 lines
Diff to previous 1.20 (colored)

Make tcpdump display BSS load information contained in 802.11 mgmt frames.
ok phessler sthen

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jul 16 23:34:54 2015 UTC (8 years, 10 months ago) by sthen
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

add missing ELEM_CHECK for csa printing, spotted by / ok stsp@

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 16 20:57:13 2015 UTC (8 years, 10 months ago) by stsp
Branch: MAIN
Changes since 1.18: +83 -1 lines
Diff to previous 1.18 (colored)

Make tcpdump show 11n HT capabilities in 802.11 management frames.
ok deraadt@ zhuk@ sthen@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 15 03:05:00 2015 UTC (8 years, 10 months ago) by stsp
Branch: MAIN
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

Unbreak the tree. Remove use of removed ieee80211 element IDs from hostapd
and from tcpdump.
Pointed out by James Hartley.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 8 21:44:16 2015 UTC (9 years, 2 months ago) by sthen
Branch: MAIN
Changes since 1.16: +5 -1 lines
Diff to previous 1.16 (colored)

Teach the 802.11 printer about Channel Switch Announcements (advertised by
an AP in beacons in the run-up to a channel switch, either for radar avoidance,
or for frequency management). ok stsp@

We don't support these in net80211 yet (as pointed out by stsp a few days ago)
but it's useful to at least have a way to debug why your connection is getting
knocked down!

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:21 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 14 12:44:44 2014 UTC (9 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 20 17:52:34 2014 UTC (9 years, 10 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Fix tcpdump(8) display of logical link control data in IEEE802 frames.
The frame subtype field is in the first byte of frame control but tcpdump(8)
was looking at the second byte to determine if this is a data frame.
Patch by Nathanael Rensen, thanks!

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 17 02:53:07 2013 UTC (11 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.12: +43 -11 lines
Diff to previous 1.12 (colored)

Dump some more flags and subtypes in tcpdump. Especially flags used in
power saving mode. OK giovanni@

Revision 1.12 / (download) - annotate - [select for diffs], Tue Aug 14 19:10:45 2007 UTC (16 years, 9 months ago) by mglocker
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

Fix Segmentation fault for tcpdump when used in combination with
``-v -y IEEE802_11'', and ``-v -y IEEE802_11_RADIO''.  The snaplen
was passed instead of the real packet size at some point, which caused
tcpdump todo tcp checksum verifications on packets where it shouldn't.

Diff from canacar@ and me, tested by canacar@, reyk@, and me.

OK canacar@ reyk@

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 2 22:09:01 2007 UTC (16 years, 11 months ago) by canacar
Branch: MAIN
Changes since 1.10: +10 -2 lines
Diff to previous 1.10 (colored)

Display payload for DS to DS and NO DS traffic.
ok reyk@, looks ok damien@

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jun 3 23:47:28 2007 UTC (17 years ago) by reyk
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

unbreak 802.11 element parsing by using the TCHECK2 macro correctly

ok claudio@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 27 12:39:24 2007 UTC (17 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.8: +41 -25 lines
Diff to previous 1.8 (colored)

Fix aligenment issues by using bcopy() and a local variable instead of the
problematic *(u_intXX_t*)t casts. This fixes the bus errors I got on sparc64
while doing IEEE802_11_RADIO dumps. OK reyk@ mglocker@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 26 16:41:33 2007 UTC (17 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.7: +58 -1 lines
Diff to previous 1.7 (colored)

Print the reason code of deauth and disassociation packets if in verbose mode.
This helps debugging issues with stations that fail to join a network.
OK mglocker@, reyk@, jsg@

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 23 21:53:01 2006 UTC (17 years, 11 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.6: +13 -1 lines
Diff to previous 1.6 (colored)

set the RSSI Max value in ath(4) and use the new RSSI radiotap header
instead of the old db signal header. also allow tcpdump and hostapd to
print the new RSSI radiotap header values current/max rssi.

ok damien@ jsg@

Revision 1.6 / (download) - annotate - [select for diffs], Sun Dec 18 17:52:46 2005 UTC (18 years, 5 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Update my e-mail address in the copyright statement, no binary changes.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 22 11:36:12 2005 UTC (18 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.4: +18 -11 lines
Diff to previous 1.4 (colored)

add printer for IAPP and hostapd(8) messages

ok canacar@, tested by aanriot@ and others

Revision 1.4 / (download) - annotate - [select for diffs], Sat May 28 09:01:52 2005 UTC (19 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.3: +33 -2 lines
Diff to previous 1.3 (colored)

support decapsulation of 802.11 data frames

ok canacar@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 9 11:43:17 2005 UTC (19 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.2: +6 -14 lines
Diff to previous 1.2 (colored)

simplification; ok reyk

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 8 14:55:41 2005 UTC (19 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

make this compile on strict-alignment architectures.  someone send
reyk a sparc64 please!

Revision 1.1 / (download) - annotate - [select for diffs], Mon Mar 7 16:13:38 2005 UTC (19 years, 3 months ago) by reyk
Branch: MAIN

add a printer for 802.11 and for additional radiotap headers,
use -y IEEE802_11 or IEEE802_11_RADIO if supported by the driver.

ok canacar@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.