diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-02 23:44:10 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-02 23:44:10 +0000 |
commit | 2fe497ab2f8de6acb1dec003449b19a068e2da02 (patch) | |
tree | e10aa1fa027e374ffc33803ece9d48513a9f221b /airpcap_loader.h | |
parent | 7ab8f0b2d7274b0531e9820df686164778b46f7d (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).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19401 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'airpcap_loader.h')
-rw-r--r-- | airpcap_loader.h | 8 |
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); |