diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-11-19 19:35:47 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-11-19 19:35:47 +0000 |
commit | 4e816f9e303bcc4f056e49fa9d09f07b0d06ed18 (patch) | |
tree | d4a3edf2484faf568abd93258c9c781851b4c435 /usr.sbin | |
parent | 62820463f9200033f1f2d01773e4486933fab42d (diff) |
Make tcpdump indicate basic rates listed in beacons with an asterisk.
ok tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/tcpdump/print-802_11.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-802_11.c b/usr.sbin/tcpdump/print-802_11.c index d5c8d947aa6..aa3777aa4dc 100644 --- a/usr.sbin/tcpdump/print-802_11.c +++ b/usr.sbin/tcpdump/print-802_11.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-802_11.c,v 1.34 2016/10/08 14:45:11 stsp Exp $ */ +/* $OpenBSD: print-802_11.c,v 1.35 2016/11/19 19:35:46 stsp Exp $ */ /* * Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org> @@ -679,8 +679,10 @@ ieee80211_print_elements(uint8_t *frm) if (!vflag) break; for (i = len; i > 0; i--, data++) - printf(" %uM", - (data[0] & IEEE80211_RATE_VAL) / 2); + printf(" %uM%s", + (data[0] & IEEE80211_RATE_VAL) / 2, + (data[0] & IEEE80211_RATE_BASIC + ? "*" : "")); break; case IEEE80211_ELEMID_FHPARMS: ELEM_CHECK(5); |