GNUnet  0.10.x
Data Structures | Macros | Variables
plugin_transport_wlan.h File Reference

header for transport plugin and the helper for wlan More...

#include "gnunet_crypto_lib.h"
#include "gnunet_common.h"
Include dependency graph for plugin_transport_wlan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GNUNET_TRANSPORT_WLAN_MacAddress
 A MAC Address. More...
 
struct  GNUNET_TRANSPORT_WLAN_HelperControlMessage
 Format of a WLAN Control Message. More...
 
struct  GNUNET_TRANSPORT_WLAN_Ieee8023Frame
 generic definitions for IEEE 802.3 frames More...
 
struct  GNUNET_TRANSPORT_WLAN_Ieee80211Frame
 generic definitions for IEEE 802.11 frames More...
 
struct  GNUNET_TRANSPORT_WLAN_RadiotapSendMessage
 Message from the plugin to the WLAN helper: send the given message with the given connection parameters. More...
 
struct  GNUNET_TRANSPORT_WLAN_RadiotapReceiveMessage
 Message from the WLAN helper to the plugin: we have received the given message with the given performance characteristics. More...
 

Macros

#define MAC_ADDR_SIZE   6
 Number fo bytes in a mac address. More...
 
#define IEEE80211_FC0_TYPE_MGT   0x00
 Value for "Management" in the 'frame_control' field of the struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame. More...
 
#define IEEE80211_FC0_TYPE_CTL   0x04
 Value for "Control" in the 'frame_control' field of the struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame. More...
 
#define IEEE80211_FC0_TYPE_DATA   0x08
 Value for DATA in the 'frame_control' field of the struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame. More...
 

Variables

static GNUNET_NETWORK_STRUCT_END const struct GNUNET_TRANSPORT_WLAN_MacAddress mac_bssid_gnunet
 GNUnet bssid. More...
 
static const struct GNUNET_TRANSPORT_WLAN_MacAddress bc_all_mac
 Broadcast MAC. More...
 

Detailed Description

header for transport plugin and the helper for wlan

Author
David Brodski

Definition in file plugin_transport_wlan.h.

Macro Definition Documentation

◆ MAC_ADDR_SIZE

#define MAC_ADDR_SIZE   6

Number fo bytes in a mac address.

Definition at line 39 of file plugin_transport_wlan.h.

Referenced by mac_test(), and open_device_raw().

◆ IEEE80211_FC0_TYPE_MGT

#define IEEE80211_FC0_TYPE_MGT   0x00

Value for "Management" in the 'frame_control' field of the struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame.

Definition at line 46 of file plugin_transport_wlan.h.

◆ IEEE80211_FC0_TYPE_CTL

#define IEEE80211_FC0_TYPE_CTL   0x04

Value for "Control" in the 'frame_control' field of the struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame.

Definition at line 52 of file plugin_transport_wlan.h.

◆ IEEE80211_FC0_TYPE_DATA

#define IEEE80211_FC0_TYPE_DATA   0x08

Value for DATA in the 'frame_control' field of the struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame.

Definition at line 58 of file plugin_transport_wlan.h.

Variable Documentation

◆ mac_bssid_gnunet

GNUNET_NETWORK_STRUCT_END const struct GNUNET_TRANSPORT_WLAN_MacAddress mac_bssid_gnunet
static
Initial value:
= {
{0x13, 0x22, 0x33, 0x44, 0x55, 0x66}
}

GNUnet bssid.

Definition at line 275 of file plugin_transport_wlan.h.

Referenced by get_wlan_header(), getWlanHeader(), handle_helper_message(), mac_set(), and mac_test().

◆ bc_all_mac

const struct GNUNET_TRANSPORT_WLAN_MacAddress bc_all_mac
static
Initial value:
= {
{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
}

Broadcast MAC.

Definition at line 283 of file plugin_transport_wlan.h.

Referenced by handle_helper_message(), mac_test(), and send_hello_beacon().