From 809f340d24b22ca4e4a47eb571bb0a771cc1b775 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 29 Oct 2004 02:40:01 +0000 Subject: [PATCH 1/1] As Sam Leffler notes, the radiotap header isn't BSD-only, it's also used by his madwifi Atheros driver on Linux; rename WTAP_ENCAP_IEEE_802_11_WLAN_BSD to WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP, and change its text name from "ieee-802-11-bsd" to "ieee-802-11-radiotap". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12429 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-radiotap.c | 2 +- wiretap/libpcap.c | 6 +++--- wiretap/wtap.c | 4 ++-- wiretap/wtap.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/epan/dissectors/packet-radiotap.c b/epan/dissectors/packet-radiotap.c index e9adad14a3..608fdd808b 100644 --- a/epan/dissectors/packet-radiotap.c +++ b/epan/dissectors/packet-radiotap.c @@ -455,5 +455,5 @@ proto_reg_handoff_radiotap(void) radiotap_handle = create_dissector_handle(dissect_radiotap, proto_radiotap); - dissector_add("wtap_encap", WTAP_ENCAP_IEEE_802_11_WLAN_BSD, radiotap_handle); + dissector_add("wtap_encap", WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP, radiotap_handle); } diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index e58821a82a..d36f7f2f1d 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -289,7 +289,7 @@ static const struct { { 121, WTAP_ENCAP_HHDLC }, /* HiPath HDLC */ { 122, WTAP_ENCAP_IP_OVER_FC }, /* RFC 2625 IP-over-FC */ { 123, WTAP_ENCAP_ATM_PDUS }, /* SunATM */ - { 127, WTAP_ENCAP_IEEE_802_11_WLAN_BSD }, /* 802.11 plus BSD WLAN header */ + { 127, WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP }, /* 802.11 plus radiotap WLAN header */ { 128, WTAP_ENCAP_TZSP }, /* Tazmen Sniffer Protocol */ { 129, WTAP_ENCAP_ARCNET_LINUX }, @@ -1152,7 +1152,7 @@ static gboolean libpcap_read(wtap *wth, int *err, gchar **err_info, case WTAP_ENCAP_IEEE_802_11: case WTAP_ENCAP_PRISM_HEADER: - case WTAP_ENCAP_IEEE_802_11_WLAN_BSD: + case WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP: case WTAP_ENCAP_IEEE_802_11_WLAN_AVS: /* * We don't know whether there's an FCS in this frame or not. @@ -1266,7 +1266,7 @@ libpcap_seek_read(wtap *wth, long seek_off, case WTAP_ENCAP_IEEE_802_11: case WTAP_ENCAP_PRISM_HEADER: - case WTAP_ENCAP_IEEE_802_11_WLAN_BSD: + case WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP: case WTAP_ENCAP_IEEE_802_11_WLAN_AVS: /* * We don't know whether there's an FCS in this frame or not. diff --git a/wiretap/wtap.c b/wiretap/wtap.c index a58e93fc32..8b0423eb09 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -129,8 +129,8 @@ static const struct encap_type_info { /* WTAP_ENCAP_IEEE_802_11_WITH_RADIO */ { "IEEE 802.11 Wireless LAN with radio information", "ieee-802-11-radio" }, - /* WTAP_ENCAP_IEEE_802_11_WLAN_BSD */ - { "IEEE 802.11 plus BSD WLAN header", "ieee-802-11-bsd" }, + /* WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP */ + { "IEEE 802.11 plus radiotap WLAN header", "ieee-802-11-radiotap" }, /* WTAP_ENCAP_IEEE_802_11_WLAN_AVS */ { "IEEE 802.11 plus AVS WLAN header", "ieee-802-11-avs" }, diff --git a/wiretap/wtap.h b/wiretap/wtap.h index d624df981f..c2157c717d 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -112,7 +112,7 @@ #define WTAP_ENCAP_IEEE_802_11 20 #define WTAP_ENCAP_PRISM_HEADER 21 #define WTAP_ENCAP_IEEE_802_11_WITH_RADIO 22 -#define WTAP_ENCAP_IEEE_802_11_WLAN_BSD 23 +#define WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP 23 #define WTAP_ENCAP_IEEE_802_11_WLAN_AVS 24 #define WTAP_ENCAP_SLL 25 #define WTAP_ENCAP_FRELAY 26 -- 2.34.1