*
* $Id$
*
+ * Giorgio Tino <giorgio.tino@cacetech.com>
+ * Copyright (c) CACE Technologies, LLC 2006
+ *
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
typedef BOOL (*AirpcapReadHandler)(PAirpcapHandle AdapterHandle, PBYTE Buffer, UINT BufSize, PUINT PReceievedBytes);
typedef BOOL (*AirpcapGetStatsHandler)(PAirpcapHandle AdapterHandle, PAirpcapStats PStats);
typedef BOOL (*AirpcapTurnLedOnHandler)(PAirpcapHandle AdapterHandle, UINT LedNumber);
-typedef BOOL (*AirpcapTurnLedOffHandler)(PAirpcapHandle AdapterHandle, UINT LedNumber);
-typedef BOOL (*AirpcapSetDeviceChannelHandler)(PAirpcapHandle AdapterHandle, UINT Channel);
-typedef BOOL (*AirpcapGetDeviceChannelHandler)(PAirpcapHandle AdapterHandle, PUINT PChannel);
-typedef BOOL (*AirpcapSetFcsPresenceHandler)(PAirpcapHandle AdapterHandle, BOOL IsFcsPresent);
-typedef BOOL (*AirpcapGetFcsPresenceHandler)(PAirpcapHandle AdapterHandle, PBOOL 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, PUINT PKeysCollectionSize);
-typedef BOOL (*AirpcapSetDecryptionStateHandler)(PAirpcapHandle AdapterHandle, AirpcapDecryptionState Enable);
-typedef BOOL (*AirpcapGetDecryptionStateHandler)(PAirpcapHandle AdapterHandle, PAirpcapDecryptionState PEnable);
+typedef BOOL (*AirpcapTurnLedOffHandler)(PAirpcapHandle AdapterHandle, UINT LedNumber);
+typedef BOOL (*AirpcapSetDeviceChannelHandler)(PAirpcapHandle AdapterHandle, UINT Channel);
+typedef BOOL (*AirpcapGetDeviceChannelHandler)(PAirpcapHandle AdapterHandle, PUINT PChannel);
+typedef BOOL (*AirpcapSetFcsPresenceHandler)(PAirpcapHandle AdapterHandle, BOOL IsFcsPresent);
+typedef BOOL (*AirpcapGetFcsPresenceHandler)(PAirpcapHandle AdapterHandle, PBOOL 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, PUINT PKeysCollectionSize);
+typedef BOOL (*AirpcapSetDecryptionStateHandler)(PAirpcapHandle AdapterHandle, AirpcapDecryptionState Enable);
+typedef BOOL (*AirpcapGetDecryptionStateHandler)(PAirpcapHandle AdapterHandle, PAirpcapDecryptionState PEnable);
typedef BOOL (*AirpcapStoreCurConfigAsAdapterDefaultHandler)(PAirpcapHandle AdapterHandle);
/*
* The list of interfaces returned by "get_airpcap_interface_list()" is
* a list of these structures.
*/
-typedef struct {
+typedef struct {
char *name; /* e.g. "eth0" */
char *description; /* from OS, e.g. "Local Area Connection" or NULL */
GSList *ip_addr; /* containing address values of if_addr_t */
airpcap_get_if_string_number_from_description(gchar* description);
/*
- * Function used to free the airpcap interface list
+ * Function used to free the airpcap interface list
*/
void
free_airpcap_interface_list(GList *if_list);
/*
* Function used to load the WEP keys for a selected interface
*/
-BOOL
+BOOL
airpcap_if_load_keys(PAirpcapHandle ad, airpcap_if_info_t *if_info);
/*
* Function used to save the WEP keys for a selected interface
*/
-void
+void
airpcap_if_save_keys(PAirpcapHandle ad, airpcap_if_info_t *if_info);
/*
* Airpcap wrapper, used to get the fcs validation of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_get_fcs_validation(PAirpcapHandle ah, PAirpcapValidationType val);
/*
* Airpcap wrapper, used to set the fcs validation of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_set_fcs_validation(PAirpcapHandle ah, AirpcapValidationType val);
/*
* Airpcap wrapper, used to get the decryption enabling of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_get_decryption_state(PAirpcapHandle ah, PAirpcapDecryptionState val);
/*
* Airpcap wrapper, used to set the decryption enabling of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_set_decryption_state(PAirpcapHandle ah, AirpcapDecryptionState val);
/*
* Airpcap wrapper, used to get the fcs presence of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_get_fcs_presence(PAirpcapHandle ah, PBOOL ch);
/*
* Airpcap wrapper, used to set the fcs presence of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_set_fcs_presence(PAirpcapHandle ah, BOOL ch);
/*
* Airpcap wrapper, used to get the link type of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_get_link_type(PAirpcapHandle ah, PAirpcapLinkType lt);
/*
/*
* Airpcap wrapper, used to get the channel of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_get_device_channel(PAirpcapHandle ah, PUINT ch);
/*
* Airpcap wrapper, used to set the channel of an airpcap adapter
*/
-BOOL
+BOOL
airpcap_if_set_device_channel(PAirpcapHandle ah, UINT ch);
/*
/* HAVE_AIRPCAP_API */
/*
- * Used to dinamically load the airpcap library in order link it only when
- * it's present on the system.
+ * Used to dinamically load the airpcap library in order link it only when
+ * it's present on the system.
*/
BOOL load_airpcap(void);
/*
* Returns the ASCII string of a key given the key bites
*/
-gchar*
+gchar*
airpcap_get_key_string(AirpcapKey key);
/*
* Used to retrieve the name of the interface given the description
* (the name is used in AirpcapOpen, the description is put in the combo box)
*/
-gchar*
+gchar*
get_airpcap_name_from_description(GList* if_list, gchar* description);
/*
- * Used to retrieve the airpcap_if_info_t of the selected interface given the
+ * Used to retrieve the airpcap_if_info_t of the selected interface given the
* description (that is the entry of the combo box).
*/
-gpointer
+gpointer
get_airpcap_if_from_description(GList* if_list, const gchar* description);
/*
airpcap_get_if_string_number(airpcap_if_info_t* if_info);
/*
- * Returns the default airpcap interface of a list, NULL if list is empty
+ * Returns the default airpcap interface of a list, NULL if list is empty
*/
airpcap_if_info_t*
airpcap_get_default_if(GList* airpcap_if_list);
*
* $Id$
*
+ * Giorgio Tino <giorgio.tino@cacetech.com>
+ * Copyright (c) CACE Technologies, LLC 2006
+ *
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
#define AIRPCAP_LINK_TYPE_NAME_802_11_PLUS_RADIO "802.11 + Radio"
#define AIRPCAP_LINK_TYPE_NAME_UNKNOWN "Unknown"
-/*
+/*
* set up the airpcap toolbar for the new capture interface
*/
-void
+void
airpcap_set_toolbar_start_capture(airpcap_if_info_t* if_info);
/*
- * Set up the airpcap toolbar for the new capture interface
+ * Set up the airpcap toolbar for the new capture interface
*/
void
airpcap_set_toolbar_stop_capture(airpcap_if_info_t* if_info);
airpcap_add_key_to_list(GtkWidget *keylist, gchar* s);
/*
- * Fill the list with the keys
+ * Fill the list with the keys
*/
void
airpcap_fill_key_list(GtkWidget *keylist,airpcap_if_info_t* if_info);
airpcap_get_validation_name(AirpcapValidationType vt);
/*
- * Returns the AirpcapLinkType corresponding to the given string name.
+ * Returns the AirpcapLinkType corresponding to the given string name.
*/
AirpcapLinkType
airpcap_get_link_type(const gchar* name);