libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
radiotap.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  libwifi_radiotap_channel
 A channel field in radiotap consists of a 2-byte wide flags sub-field and a 2-byte wide frequency field. More...
 
struct  libwifi_radiotap_antenna
 The radiotap antenna field consists of an antenna number and signal in dBm. More...
 
struct  libwifi_radiotap_mcs
 The radiotap MCS field is made up of 3 2-byte fields. More...
 
struct  libwifi_radiotap_timestamp
 The radiotap timestamp field consists of a timestamp field, accuracy, unit and flags. More...
 
struct  libwifi_radiotap_info
 

Macros

#define LIBWIFI_MAX_RADIOTAP_LEN   128
 
#define LIBWIFI_MAX_RADIOTAP_ANTENNAS   16
 

Functions

struct libwifi_radiotap_channel __attribute__ ((packed))
 

Variables

uint16_t flags
 
uint16_t freq
 
uint8_t antenna_number
 
int8_t signal
 
uint8_t known
 
uint8_t mcs
 
uint64_t timestamp
 
uint16_t accuracy
 
uint8_t unit
 
uint32_t present
 
struct libwifi_radiotap_channel channel
 
int8_t rate_raw
 
float rate
 
uint8_t antenna_count
 
struct libwifi_radiotap_antenna antennas [LIBWIFI_MAX_RADIOTAP_ANTENNAS]
 
uint32_t extended_flags
 
uint16_t rx_flags
 
uint16_t tx_flags
 
int8_t tx_power
 
uint8_t rts_retries
 
uint8_t data_retries
 
uint8_t length
 

Macro Definition Documentation

◆ LIBWIFI_MAX_RADIOTAP_ANTENNAS

#define LIBWIFI_MAX_RADIOTAP_ANTENNAS   16

Definition at line 22 of file radiotap.h.

◆ LIBWIFI_MAX_RADIOTAP_LEN

#define LIBWIFI_MAX_RADIOTAP_LEN   128

Definition at line 21 of file radiotap.h.

Function Documentation

◆ __attribute__()

struct libwifi_radiotap_channel __attribute__ ( (packed)  )

Variable Documentation

◆ accuracy

uint16_t accuracy

Definition at line 1 of file radiotap.h.

◆ antenna_count

uint8_t antenna_count

Definition at line 6 of file radiotap.h.

◆ antenna_number

uint8_t antenna_number

Definition at line 0 of file radiotap.h.

◆ antennas

Definition at line 7 of file radiotap.h.

◆ channel

struct libwifi_radiotap_channel channel

Definition at line 3 of file radiotap.h.

◆ data_retries

uint8_t data_retries

Definition at line 17 of file radiotap.h.

◆ extended_flags

uint32_t extended_flags

Definition at line 10 of file radiotap.h.

◆ flags

uint8_t flags

Definition at line 0 of file radiotap.h.

◆ freq

uint16_t freq

Definition at line 1 of file radiotap.h.

◆ known

uint8_t known

Definition at line 0 of file radiotap.h.

◆ length

uint8_t length

Definition at line 19 of file radiotap.h.

◆ mcs

Definition at line 2 of file radiotap.h.

◆ present

uint32_t present

Definition at line 1 of file radiotap.h.

◆ rate

float rate

Definition at line 5 of file radiotap.h.

◆ rate_raw

int8_t rate_raw

Definition at line 4 of file radiotap.h.

◆ rts_retries

uint8_t rts_retries

Definition at line 16 of file radiotap.h.

◆ rx_flags

uint16_t rx_flags

Definition at line 11 of file radiotap.h.

◆ signal

int8_t signal

Definition at line 1 of file radiotap.h.

◆ timestamp

struct libwifi_radiotap_timestamp timestamp

Definition at line 0 of file radiotap.h.

◆ tx_flags

uint16_t tx_flags

Definition at line 12 of file radiotap.h.

◆ tx_power

int8_t tx_power

Definition at line 14 of file radiotap.h.

◆ unit

uint8_t unit

Definition at line 2 of file radiotap.h.