GNUnet  0.11.x
Data Fields
GNUNET_TRANSPORT_WLAN_Ieee80211Frame Struct Reference

generic definitions for IEEE 802.11 frames More...

#include </home/handbook/gnunet/src/transport/plugin_transport_wlan.h>

Collaboration diagram for GNUNET_TRANSPORT_WLAN_Ieee80211Frame:
[legend]

Data Fields

uint16_t frame_control
 802.11 Frame Control field. More...
 
uint16_t duration
 Microseconds to reserve link (duration), 0 by default. More...
 
struct GNUNET_TRANSPORT_WLAN_MacAddress addr1
 Address 1: destination address in ad-hoc mode or AP, BSSID if station,. More...
 
struct GNUNET_TRANSPORT_WLAN_MacAddress addr2
 Address 2: source address if in ad-hoc-mode or station, BSSID if AP. More...
 
struct GNUNET_TRANSPORT_WLAN_MacAddress addr3
 Address 3: BSSID in ad-hoc mode, Destination if station, source if AP. More...
 
uint16_t sequence_control
 802.11 sequence control field; contains fragment number an sequence number (we set this to all zeros). More...
 
u_int8_t llc [4]
 Link layer control (LLC). More...
 

Detailed Description

generic definitions for IEEE 802.11 frames

Definition at line 108 of file plugin_transport_wlan.h.

Field Documentation

◆ frame_control

uint16_t GNUNET_TRANSPORT_WLAN_Ieee80211Frame::frame_control

802.11 Frame Control field.

A bitmask. The overall field is a 16-bit mask of the respecitve fields. The lowest two bits should be 0, then comes the "type" (2 bits, see IEEE80211_FC0_TYPE_* constants), followed by 4-bit subtype (all zeros for ad-hoc), followed by various flags (to DS, from DS, more frag, retry, power management, more data, WEP, strict), all of which we also keep at zero.

Definition at line 119 of file plugin_transport_wlan.h.

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

◆ duration

uint16_t GNUNET_TRANSPORT_WLAN_Ieee80211Frame::duration

Microseconds to reserve link (duration), 0 by default.

Definition at line 124 of file plugin_transport_wlan.h.

Referenced by get_wlan_header(), and getWlanHeader().

◆ addr1

struct GNUNET_TRANSPORT_WLAN_MacAddress GNUNET_TRANSPORT_WLAN_Ieee80211Frame::addr1

Address 1: destination address in ad-hoc mode or AP, BSSID if station,.

Definition at line 129 of file plugin_transport_wlan.h.

Referenced by get_wlan_header(), getWlanHeader(), handle_helper_message(), mac_test(), main(), and stdin_send_hw().

◆ addr2

struct GNUNET_TRANSPORT_WLAN_MacAddress GNUNET_TRANSPORT_WLAN_Ieee80211Frame::addr2

Address 2: source address if in ad-hoc-mode or station, BSSID if AP.

Definition at line 134 of file plugin_transport_wlan.h.

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

◆ addr3

struct GNUNET_TRANSPORT_WLAN_MacAddress GNUNET_TRANSPORT_WLAN_Ieee80211Frame::addr3

Address 3: BSSID in ad-hoc mode, Destination if station, source if AP.

Definition at line 139 of file plugin_transport_wlan.h.

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

◆ sequence_control

uint16_t GNUNET_TRANSPORT_WLAN_Ieee80211Frame::sequence_control

802.11 sequence control field; contains fragment number an sequence number (we set this to all zeros).

Definition at line 145 of file plugin_transport_wlan.h.

Referenced by get_wlan_header().

◆ llc

u_int8_t GNUNET_TRANSPORT_WLAN_Ieee80211Frame::llc[4]

Link layer control (LLC).

Set to a GNUnet-specific value.

Definition at line 150 of file plugin_transport_wlan.h.

Referenced by get_wlan_header(), and getWlanHeader().


The documentation for this struct was generated from the following file: