ORBIT-USER: Fwd: [Radiotap] use of radiotap bit 14?
Luis R. Rodriguez
mcgrof at gmail.com
Fri Aug 31 12:57:28 EDT 2007
Just FYI
---------- Forwarded message ----------
From: Gerald Combs <gerald at wireshark.org>
Date: Aug 31, 2007 12:50 PM
Subject: Re: [Radiotap] use of radiotap bit 14?
To: Pavel Roskin <proski at gnu.org>
Cc: Johannes Berg <johannes at sipsolutions.net>, radiotap
<radiotap at mail.ojctech.com>
Pavel Roskin wrote:
> On Fri, 2007-08-31 at 00:16 +0200, Johannes Berg wrote:
>> Our radiotap header in Linux defines bit 14 as
>> IEEE80211_RADIOTAP_RX_FLAGS; however running wireshark on it tells me
>> that this bit means "FCS in header". Does anybody know which use is
>> correct, if any?
>
> As far as I know, "FCS in header" is a FreeBSD thing, which came to
> Linux in MadWifi. "Rx flags" comes from Linux Libertas driver.
>
> The standard uses the later:
> http://netbsd.gw.com/cgi-bin/man-cgi?ieee80211_radiotap+9+NetBSD-current
>
> MadWifi has removed the non-standard use of bit 14. Now it's time to
> fix wireshark.
The problem is a little more widespread than that. Packet-radiotap.h in
the Wireshark sources has the following comments:
/*
* AAAAAAAAAAAAAAAAAAAAAAAAAARGH.
*
* The current FreeBSD ieee80211_radiotap.h has IEEE80211_RADIOTAP_XCHANNEL
* as 14.
*
* The current NetBSD ieee80211_radiotap.h has IEEE80211_RADIOTAP_RX_FLAGS
* as 14.
*
* The current OpenBSD ieee80211_radiotap.h has IEEE80211_RADIOTAP_FCS as
* 14.
*
* NetBSD and OpenBSD also differ on what comes *after* 14.
*
* They all use the same DLT_ value for "802.11+radiotap".
*
* This is all wonderfully appreciated by those of us who write code to
* read files containing packets with radiotap headers. I will see if
* I can apply a little cluebat-fu here.
*/
and
/* XXX - IEEE80211_RADIOTAP_FCS is used by MadWifi and AirPcap, but
* was never officially assigned. */
I'll open a ticket on Wireshark's Bugzilla so we (Wireshark) don't lose
track of this before the next release. I'll talk to the guys here
(CACE) about fixing AirPcap as well.
An earlier email from David Young discussed placing the Radiotap
documentation in a more "official" location -- I think this would help
immensely. For a developer starting from scratch, it's not immediately
obvious where the canonical Radiotap specification is and it's very easy
to get started down the wrong path. For example, if NetBSD Radiotap
header and man page show up in Google's rankings for "radiotap" and
"radiotap specification", they're pretty far down the list.
_______________________________________________
Radiotap mailing list
Radiotap at mail.ojctech.com
http://mail.ojctech.com/mailman/listinfo/radiotap
More information about the orbit-user
mailing list