2000-11-15 05:42:35 +00:00
|
|
|
/* packet-ieee80211.h
|
|
|
|
* Routines for Wireless LAN (IEEE 802.11) dissection
|
|
|
|
*
|
2002-08-28 21:04:11 +00:00
|
|
|
* Copyright 2000, Axis Communications AB
|
2000-11-15 05:42:35 +00:00
|
|
|
* Inquiries/bugreports should be sent to Johan.Jorgensen@axis.com
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2000-11-15 05:42:35 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2000-11-15 05:42:35 +00:00
|
|
|
* 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.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-11-15 05:42:35 +00:00
|
|
|
* 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.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-11-15 05:42:35 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2002-08-02 23:36:07 +00:00
|
|
|
void capture_ieee80211 (const guchar *, int, int, packet_counts *);
|
2006-01-23 16:56:34 +00:00
|
|
|
void capture_ieee80211_datapad (const guchar *, int, int, packet_counts *);
|
2002-08-02 23:36:07 +00:00
|
|
|
void capture_ieee80211_fixed (const guchar *, int, int, packet_counts *);
|
2007-05-18 21:06:20 +00:00
|
|
|
void capture_ieee80211_ht (const guchar *, int, int, packet_counts *);
|
2003-09-23 02:35:59 +00:00
|
|
|
|
2007-12-18 08:01:11 +00:00
|
|
|
void capture_prism(const guchar *, int, int, packet_counts *);
|
|
|
|
void capture_wlancap(const guchar *, int, int, packet_counts *);
|
|
|
|
|
2003-09-23 02:35:59 +00:00
|
|
|
void ieee_80211_add_tagged_parameters (tvbuff_t * tvb, int offset,
|
2011-05-31 21:41:43 +00:00
|
|
|
packet_info * pinfo, proto_tree * tree, int tagged_parameters_len, int ftype);
|
2004-12-21 12:30:24 +00:00
|
|
|
|
2008-02-12 14:17:18 +00:00
|
|
|
#define MAX_SSID_LEN 32
|
|
|
|
#define MAX_PROTECT_LEN 10
|
|
|
|
|
|
|
|
struct _wlan_stats {
|
|
|
|
guint8 channel;
|
2008-05-05 19:35:16 +00:00
|
|
|
guint8 ssid_len;
|
2008-02-12 14:17:18 +00:00
|
|
|
guchar ssid[MAX_SSID_LEN];
|
2008-07-12 01:48:24 +00:00
|
|
|
gchar protection[MAX_PROTECT_LEN];
|
2008-02-12 14:17:18 +00:00
|
|
|
};
|
|
|
|
|
2004-12-21 12:30:24 +00:00
|
|
|
typedef struct _wlan_hdr {
|
|
|
|
address bssid;
|
|
|
|
address src;
|
|
|
|
address dst;
|
|
|
|
guint16 type;
|
2008-02-12 14:17:18 +00:00
|
|
|
struct _wlan_stats stats;
|
2004-12-21 12:30:24 +00:00
|
|
|
} wlan_hdr;
|