aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-radiotap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-06-27 23:53:24 +0000
committerGuy Harris <guy@alum.mit.edu>2007-06-27 23:53:24 +0000
commit126dedd9b2c42efedcec4079b1bf7d16c1a5058c (patch)
tree7bf9ba07013e8543aaf19f5d8e5d3c8186a45086 /epan/dissectors/packet-radiotap.c
parent9aa17b271bc77d20f87df3210f2c3f3761e170cf (diff)
I think David Young needs to be granted the power of life and death
over anybody who edits the sys/net80211/ieee80211_radiotap.h header on any operating system. I also think he needs to be willing to use that power when necessary. svn path=/trunk/; revision=22217
Diffstat (limited to 'epan/dissectors/packet-radiotap.c')
-rw-r--r--epan/dissectors/packet-radiotap.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/epan/dissectors/packet-radiotap.c b/epan/dissectors/packet-radiotap.c
index 4ec28940f4..211e5a419b 100644
--- a/epan/dissectors/packet-radiotap.c
+++ b/epan/dissectors/packet-radiotap.c
@@ -70,6 +70,26 @@ struct ieee80211_radiotap_header {
#define RADIOTAP_LENGTH_OFFSET 2 /* offset of length field */
#define RADIOTAP_PRESENT_OFFSET 4 /* offset of "present" field */
+/*
+ * 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.
+ */
enum ieee80211_radiotap_type {
IEEE80211_RADIOTAP_TSFT = 0,
IEEE80211_RADIOTAP_FLAGS = 1,