Added WLAN Traffic Statistics dialog.
[metze/wireshark/wip.git] / epan / dissectors / packet-ieee80211.h
1 /* packet-ieee80211.h
2  * Routines for Wireless LAN (IEEE 802.11) dissection
3  *
4  * Copyright 2000, Axis Communications AB
5  * Inquiries/bugreports should be sent to Johan.Jorgensen@axis.com
6  *
7  * $Id$
8  *
9  * Wireshark - Network traffic analyzer
10  * By Gerald Combs <gerald@wireshark.org>
11  * Copyright 1998 Gerald Combs
12  *
13  * Copied from README.developer
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28  */
29
30 void capture_ieee80211 (const guchar *, int, int, packet_counts *);
31 void capture_ieee80211_datapad (const guchar *, int, int, packet_counts *);
32 void capture_ieee80211_fixed (const guchar *, int, int, packet_counts *);
33 void capture_ieee80211_ht (const guchar *, int, int, packet_counts *);
34
35 void capture_prism(const guchar *, int, int, packet_counts *);
36 void capture_wlancap(const guchar *, int, int, packet_counts *);
37
38 void ieee_80211_add_tagged_parameters (tvbuff_t * tvb, int offset,
39        packet_info * pinfo, proto_tree * tree, int tagged_parameters_len);
40
41 #define MAX_SSID_LEN    32
42 #define MAX_PROTECT_LEN 10
43
44 struct _wlan_stats {
45   guint8 channel;
46   guchar ssid[MAX_SSID_LEN];
47   guchar protection[MAX_PROTECT_LEN];
48 };
49
50 typedef struct _wlan_hdr {
51         address bssid;
52         address src;
53         address dst;
54         guint16 type;
55         struct _wlan_stats stats;
56 } wlan_hdr;