From 2649d2614545278344fee1ce36196e3771101f42 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 2 Oct 2006 23:44:10 +0000 Subject: 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 --- airpcap_loader.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'airpcap_loader.h') 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); -- cgit v1.2.3