Wireshark  4.3.0
The Wireshark network protocol analyzer
Classes | Macros | Typedefs | Functions | Variables
airpcap_loader.h File Reference
#include <epan/crypt/dot11decrypt_system.h>
#include <wsutil/feature_list.h>

Go to the source code of this file.

Classes

struct  _Dot11Channel
 
struct  airpcap_if_info_t
 
struct  keys_cb_data_t
 

Macros

#define CANT_GET_AIRPCAP_INTERFACE_LIST   0 /* error getting list */
 
#define NO_AIRPCAP_INTERFACES_FOUND   1 /* list is empty */
 
#define AIRPCAP_NOT_LOADED   2 /* Airpcap DLL not loaded */
 
#define AIRPCAP_CHANNEL_ANY_NAME   "ANY"
 
#define AIRPCAP_WEP_KEY_STRING   "WEP"
 
#define AIRPCAP_WPA_PWD_KEY_STRING   "WPA-PWD"
 
#define AIRPCAP_WPA_BIN_KEY_STRING   "WPA-PSK"
 
#define AIRPCAP_DLL_OK   0
 
#define AIRPCAP_DLL_OLD   1
 
#define AIRPCAP_DLL_ERROR   2
 
#define AIRPCAP_DLL_NOT_FOUND   3
 
#define FLAG_CAN_BE_LOW   0x00000001
 
#define FLAG_CAN_BE_HIGH   0x00000002
 
#define FLAG_IS_BG_CHANNEL   0x00000004
 
#define FLAG_IS_A_CHANNEL   0x00000008
 

Typedefs

typedef char *(* AirpcapGetLastErrorHandler) (PAirpcapHandle AdapterHandle)
 
typedef bool(* AirpcapGetDeviceListHandler) (PAirpcapDeviceDescription *PPAllDevs, char *Ebuf)
 
typedef void(* AirpcapFreeDeviceListHandler) (PAirpcapDeviceDescription PAllDevs)
 
typedef PAirpcapHandle(* AirpcapOpenHandler) (char *DeviceName, char *Ebuf)
 
typedef void(* AirpcapCloseHandler) (PAirpcapHandle AdapterHandle)
 
typedef bool(* AirpcapGetLinkTypeHandler) (PAirpcapHandle AdapterHandle, PAirpcapLinkType PLinkType)
 
typedef bool(* AirpcapSetLinkTypeHandler) (PAirpcapHandle AdapterHandle, AirpcapLinkType NewLinkType)
 
typedef bool(* AirpcapSetKernelBufferHandler) (PAirpcapHandle AdapterHandle, unsigned BufferSize)
 
typedef bool(* AirpcapSetFilterHandler) (PAirpcapHandle AdapterHandle, void *Instructions, unsigned Len)
 
typedef bool(* AirpcapGetMacAddressHandler) (PAirpcapHandle AdapterHandle, PAirpcapMacAddress PMacAddress)
 
typedef bool(* AirpcapSetMinToCopyHandler) (PAirpcapHandle AdapterHandle, unsigned MinToCopy)
 
typedef bool(* AirpcapGetReadEventHandler) (PAirpcapHandle AdapterHandle, void ***PReadEvent)
 
typedef bool(* AirpcapReadHandler) (PAirpcapHandle AdapterHandle, uint8_t *Buffer, unsigned BufSize, unsigned *PReceievedBytes)
 
typedef bool(* AirpcapGetStatsHandler) (PAirpcapHandle AdapterHandle, PAirpcapStats PStats)
 
typedef bool(* AirpcapTurnLedOnHandler) (PAirpcapHandle AdapterHandle, unsigned LedNumber)
 
typedef bool(* AirpcapTurnLedOffHandler) (PAirpcapHandle AdapterHandle, unsigned LedNumber)
 
typedef bool(* AirpcapSetDeviceChannelHandler) (PAirpcapHandle AdapterHandle, unsigned Channel)
 
typedef bool(* AirpcapGetDeviceChannelHandler) (PAirpcapHandle AdapterHandle, unsigned *PChannel)
 
typedef bool(* AirpcapSetFcsPresenceHandler) (PAirpcapHandle AdapterHandle, bool IsFcsPresent)
 
typedef bool(* AirpcapGetFcsPresenceHandler) (PAirpcapHandle AdapterHandle, bool *PIsFcsPresent)
 
typedef bool(* AirpcapSetFcsValidationHandler) (PAirpcapHandle AdapterHandle, AirpcapValidationType ValidationType)
 
typedef bool(* AirpcapGetFcsValidationHandler) (PAirpcapHandle AdapterHandle, PAirpcapValidationType PValidationType)
 
typedef bool(* AirpcapSetDeviceKeysHandler) (PAirpcapHandle AdapterHandle, PAirpcapKeysCollection KeysCollection)
 
typedef bool(* AirpcapGetDeviceKeysHandler) (PAirpcapHandle AdapterHandle, PAirpcapKeysCollection KeysCollection, unsigned *PKeysCollectionSize)
 
typedef bool(* AirpcapSetDriverKeysHandler) (PAirpcapHandle AdapterHandle, PAirpcapKeysCollection KeysCollection)
 
typedef bool(* AirpcapGetDriverKeysHandler) (PAirpcapHandle AdapterHandle, PAirpcapKeysCollection KeysCollection, unsigned *PKeysCollectionSize)
 
typedef bool(* AirpcapSetDecryptionStateHandler) (PAirpcapHandle AdapterHandle, AirpcapDecryptionState Enable)
 
typedef bool(* AirpcapGetDecryptionStateHandler) (PAirpcapHandle AdapterHandle, PAirpcapDecryptionState PEnable)
 
typedef bool(* AirpcapSetDriverDecryptionStateHandler) (PAirpcapHandle AdapterHandle, AirpcapDecryptionState Enable)
 
typedef bool(* AirpcapGetDriverDecryptionStateHandler) (PAirpcapHandle AdapterHandle, PAirpcapDecryptionState PEnable)
 
typedef bool(* AirpcapStoreCurConfigAsAdapterDefaultHandler) (PAirpcapHandle AdapterHandle)
 
typedef void(* AirpcapGetVersionHandler) (unsigned *VersionMajor, unsigned *VersionMinor, unsigned *VersionRev, unsigned *VersionBuild)
 
typedef bool(* AirpcapSetDeviceChannelExHandler) (PAirpcapHandle AdapterHandle, AirpcapChannelInfo ChannelInfo)
 
typedef bool(* AirpcapGetDeviceChannelExHandler) (PAirpcapHandle AdapterHandle, PAirpcapChannelInfo PChannelInfo)
 
typedef bool(* AirpcapGetDeviceSupportedChannelsHandler) (PAirpcapHandle AdapterHandle, AirpcapChannelInfo **ppChannelInfo, uint32_t *pNumChannelInfo)
 
typedef struct _Dot11Channel Dot11Channel
 

Functions

char * airpcap_get_if_string_number_from_description (char *description)
 
void free_airpcap_interface_list (GList *if_list)
 
airpcap_if_info_tget_airpcap_if_from_name (GList *if_list, const char *name)
 
bool airpcap_if_store_cur_config_as_adapter_default (PAirpcapHandle ah)
 
bool airpcap_if_load_keys (PAirpcapHandle ad, airpcap_if_info_t *if_info)
 
bool airpcap_if_load_driver_keys (PAirpcapHandle ad, airpcap_if_info_t *if_info)
 
void airpcap_if_save_keys (PAirpcapHandle ad, airpcap_if_info_t *if_info)
 
void airpcap_if_save_driver_keys (PAirpcapHandle ad, airpcap_if_info_t *if_info)
 
bool airpcap_if_get_fcs_validation (PAirpcapHandle ah, PAirpcapValidationType val)
 
bool airpcap_if_set_fcs_validation (PAirpcapHandle ah, AirpcapValidationType val)
 
bool airpcap_if_get_decryption_state (PAirpcapHandle ah, PAirpcapDecryptionState val)
 
bool airpcap_if_set_decryption_state (PAirpcapHandle ah, AirpcapDecryptionState val)
 
bool airpcap_if_get_fcs_presence (PAirpcapHandle ah, bool *ch)
 
bool airpcap_if_set_fcs_presence (PAirpcapHandle ah, bool ch)
 
bool airpcap_if_get_link_type (PAirpcapHandle ah, PAirpcapLinkType lt)
 
bool airpcap_if_set_link_type (PAirpcapHandle ah, AirpcapLinkType lt)
 
bool airpcap_if_get_device_channel (PAirpcapHandle ah, unsigned *ch)
 
bool airpcap_if_get_device_supported_channels (PAirpcapHandle ah, AirpcapChannelInfo **cInfo, uint32_t *nInfo)
 
Dot11Channelairpcap_if_get_device_supported_channels_array (PAirpcapHandle ah, uint32_t *pNumSupportedChannels)
 
bool airpcap_if_set_device_channel (PAirpcapHandle ah, unsigned ch)
 
bool airpcap_if_get_device_channel_ex (PAirpcapHandle ah, PAirpcapChannelInfo pChannelInfo)
 
bool airpcap_if_set_device_channel_ex (PAirpcapHandle ah, AirpcapChannelInfo ChannelInfo)
 
PAirpcapHandle airpcap_if_open (char *name, char *err)
 
void airpcap_if_close (PAirpcapHandle handle)
 
int airpcap_get_dll_state (void)
 
bool airpcap_if_turn_led_on (PAirpcapHandle AdapterHandle, unsigned LedNumber)
 
bool airpcap_if_turn_led_off (PAirpcapHandle AdapterHandle, unsigned LedNumber)
 
airpcap_if_info_tairpcap_if_info_new (char *name, char *description)
 
airpcap_if_info_tairpcap_driver_fake_if_info_new (void)
 
int load_airpcap (void)
 
GList * get_airpcap_interface_list (int *err, char **err_str)
 
void airpcap_load_selected_if_configuration (airpcap_if_info_t *if_info)
 
void airpcap_save_selected_if_configuration (airpcap_if_info_t *if_info)
 
char * airpcap_get_if_string_number (airpcap_if_info_t *if_info)
 
bool airpcap_if_set_device_keys (PAirpcapHandle AdapterHandle, PAirpcapKeysCollection KeysCollection)
 
bool airpcap_if_get_device_keys (PAirpcapHandle AdapterHandle, PAirpcapKeysCollection KeysCollection, unsigned *PKeysCollectionSize)
 
bool airpcap_if_set_driver_keys (PAirpcapHandle AdapterHandle, PAirpcapKeysCollection KeysCollection)
 
bool airpcap_if_get_driver_keys (PAirpcapHandle AdapterHandle, PAirpcapKeysCollection KeysCollection, unsigned *PKeysCollectionSize)
 
bool airpcap_if_get_driver_decryption_state (PAirpcapHandle ah, PAirpcapDecryptionState PEnable)
 
bool airpcap_if_set_driver_decryption_state (PAirpcapHandle ah, AirpcapDecryptionState Enable)
 
void airpcap_save_driver_if_configuration (airpcap_if_info_t *fake_if_info)
 
void airpcap_if_info_free (airpcap_if_info_t *if_info)
 
void airpcap_if_clear_decryption_settings (airpcap_if_info_t *info_if)
 
void gather_airpcap_compile_info (feature_list l)
 
void gather_airpcap_runtime_info (feature_list l)
 

Variables

GList * g_airpcap_if_list
 
airpcap_if_info_tairpcap_if_selected
 
airpcap_if_info_tairpcap_if_active
 

Detailed Description

Declarations of routines for the "About" dialog

Giorgio Tino giorg.nosp@m.io.t.nosp@m.ino@c.nosp@m.acet.nosp@m.ech.c.nosp@m.om Copyright (c) CACE Technologies, LLC 2006

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later