aboutsummaryrefslogtreecommitdiffstats
path: root/airpcap_loader.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-10-02 23:44:10 +0000
committerGerald Combs <gerald@wireshark.org>2006-10-02 23:44:10 +0000
commit2649d2614545278344fee1ce36196e3771101f42 (patch)
treee10aa1fa027e374ffc33803ece9d48513a9f221b /airpcap_loader.h
parent6cde05da1bfb6e43365a3d2fc6f7ca03d49be65e (diff)
Fix WEP key bug in the AirPcap code that could cause a crash. Enable
AirPcap by default. Add initial support for the "Any" device in AirPcap (more to come). svn path=/trunk/; revision=19401
Diffstat (limited to 'airpcap_loader.h')
-rw-r--r--airpcap_loader.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/airpcap_loader.h b/airpcap_loader.h
index cb6c9eb495..831e5519b1 100644
--- a/airpcap_loader.h
+++ b/airpcap_loader.h
@@ -34,6 +34,14 @@
#define MAX_ENCRYPTION_KEYS 64
+#define AIRPCAP_CHANNEL_ANY_NAME "ANY"
+
+/*
+ * WEP_KEY_MAX_SIZE is in bytes. but each byte is rapresented in strings with an ascii char
+ * 4 bit are needed to store an exadecimal number, 8 bit to store a char...
+ */
+#define WEP_KEY_MAX_CHAR_SIZE (WEP_KEY_MAX_SIZE*2)
+
typedef PCHAR (*AirpcapGetLastErrorHandler)(PAirpcapHandle AdapterHandle);
typedef BOOL (*AirpcapGetDeviceListHandler)(PAirpcapDeviceDescription *PPAllDevs, PCHAR Ebuf);
typedef VOID (*AirpcapFreeDeviceListHandler)(PAirpcapDeviceDescription PAllDevs);