forked from osmocom/wireshark
![Anders Broman](/assets/img/avatar_default.png)
Move sniffer meta data parsing to separate files packet-ieee80211.c includes dissectors for three different styles of IEEE 802.11 sniffer meta data (like signal strength). Move these to separate files in the same style as a fourth format (radiotap) was already handled, so that packet-ieee80211.c focuses on the actual IEEE 802.11 frame dissecting. This reverts http://anonsvn.wireshark.org/viewvc?revision=23911&view=revision Objections? https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6443 svn path=/trunk/; revision=39379
62 lines
2.1 KiB
C
62 lines
2.1 KiB
C
/* packet-ieee80211.h
|
|
* Routines for Wireless LAN (IEEE 802.11) dissection
|
|
*
|
|
* Copyright 2000, Axis Communications AB
|
|
* Inquiries/bugreports should be sent to Johan.Jorgensen@axis.com
|
|
*
|
|
* $Id$
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* Copied from README.developer
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
void capture_ieee80211 (const guchar *, int, int, packet_counts *);
|
|
void capture_ieee80211_datapad (const guchar *, int, int, packet_counts *);
|
|
void capture_ieee80211_fixed (const guchar *, int, int, packet_counts *);
|
|
void capture_ieee80211_ht (const guchar *, int, int, packet_counts *);
|
|
|
|
void capture_prism(const guchar *, int, int, packet_counts *);
|
|
void capture_wlancap(const guchar *, int, int, packet_counts *);
|
|
|
|
void ieee_80211_add_tagged_parameters (tvbuff_t * tvb, int offset,
|
|
packet_info * pinfo, proto_tree * tree, int tagged_parameters_len, int ftype);
|
|
|
|
#define MAX_SSID_LEN 32
|
|
#define MAX_PROTECT_LEN 10
|
|
|
|
struct _wlan_stats {
|
|
guint8 channel;
|
|
guint8 ssid_len;
|
|
guchar ssid[MAX_SSID_LEN];
|
|
gchar protection[MAX_PROTECT_LEN];
|
|
};
|
|
|
|
typedef struct _wlan_hdr {
|
|
address bssid;
|
|
address src;
|
|
address dst;
|
|
guint16 type;
|
|
struct _wlan_stats stats;
|
|
} wlan_hdr;
|
|
|
|
#define WLANCAP_MAGIC_COOKIE_BASE 0x80211000
|
|
#define WLANCAP_MAGIC_COOKIE_V1 0x80211001
|
|
#define WLANCAP_MAGIC_COOKIE_V2 0x80211002
|