#include "../../core/misc/byteswap.h"
#include <stdint.h>
#include <sys/types.h>
Go to the source code of this file.
|
enum | libwifi_frame_type { TYPE_MANAGEMENT = 0
, TYPE_CONTROL = 1
, TYPE_DATA = 2
, TYPE_EXTENSION = 3
} |
|
enum | libwifi_mgmt_subtypes {
SUBTYPE_ASSOC_REQ = 0
, SUBTYPE_ASSOC_RESP = 1
, SUBTYPE_REASSOC_REQ = 2
, SUBTYPE_REASSOC_RESP = 3
,
SUBTYPE_PROBE_REQ = 4
, SUBTYPE_PROBE_RESP = 5
, SUBTYPE_TIME_ADV = 6
, SUBTYPE_BEACON = 8
,
SUBTYPE_ATIM = 9
, SUBTYPE_DISASSOC = 10
, SUBTYPE_AUTH = 11
, SUBTYPE_DEAUTH = 12
,
SUBTYPE_ACTION = 13
, SUBTYPE_ACTION_NOACK = 14
} |
|
enum | libwifi_control_subtypes {
SUBTYPE_TACK = 3
, SUBTYPE_BEAMFORM_REPORT_POLL = 4
, SUBTYPE_VHT_NDP_ANNOUNCE = 5
, SUBTYPE_CF_EXTENSION = 6
,
SUBTYPE_WRAPPER = 7
, SUBTYPE_BLOCK_ACK_REQ = 8
, SUBTYPE_BLOCK_ACK = 9
, SUBTYPE_PS_POLL = 10
,
SUBTYPE_RTS = 11
, SUBTYPE_CTS = 12
, SUBTYPE_ACK = 13
, SUBTYPE_CF_END = 14
,
SUBTYPE_CF_END_CF_ACK = 15
} |
|
enum | libwifi_control_extension_subtypes {
SUBTYPE_CF_EXT_POLL = 2
, SUBTYPE_CF_EXT_SPR = 3
, SUBTYPE_CF_EXT_GRANT = 4
, SUBTYPE_CF_EXT_DMG_CTS = 5
,
SUBTYPE_CF_EXT_DMG_DTS = 6
, SUBTYPE_CF_EXT_GRANT_ACK = 7
, SUBTYPE_CF_EXT_SSW = 8
, SUBTYPE_CF_EXT_SSW_FEEDBACK = 9
,
SUBTYPE_CF_EXT_SSW_ACK = 10
} |
|
enum | libwifi_data_subtypes {
SUBTYPE_DATA = 0
, SUBTYPE_DATA_NULL = 4
, SUBTYPE_DATA_QOS_DATA = 8
, SUBTYPE_DATA_QOS_DATA_CF_ACK = 9
,
SUBTYPE_DATA_QOS_DATA_CF_POLL = 10
, SUBTYPE_DATA_QOS_DATA_CF_ACK_CF_POLL = 11
, SUBTYPE_DATA_QOS_NULL = 12
, SUBTYPE_DATA_QOS_CF_POLL = 14
,
SUBTYPE_DATA_QOS_CF_ACK_CF_POLL = 15
} |
|
enum | libwifi_extension_subtypes { SUBTYPE_EXTENSION_DMG_BEACON = 0
, SUBTYPE_EXTENSION_SIG_BEACON = 1
} |
|
◆ LIBWIFI_FLAGS_FCS_PRESENT
#define LIBWIFI_FLAGS_FCS_PRESENT (1 << 0) |
◆ LIBWIFI_FLAGS_IS_ORDERED
#define LIBWIFI_FLAGS_IS_ORDERED (1 << 2) |
◆ LIBWIFI_FLAGS_IS_QOS
#define LIBWIFI_FLAGS_IS_QOS (1 << 1) |
◆ libwifi_control_extension_subtypes
Enumerator |
---|
SUBTYPE_CF_EXT_POLL | |
SUBTYPE_CF_EXT_SPR | |
SUBTYPE_CF_EXT_GRANT | |
SUBTYPE_CF_EXT_DMG_CTS | |
SUBTYPE_CF_EXT_DMG_DTS | |
SUBTYPE_CF_EXT_GRANT_ACK | |
SUBTYPE_CF_EXT_SSW | |
SUBTYPE_CF_EXT_SSW_FEEDBACK | |
SUBTYPE_CF_EXT_SSW_ACK | |
Definition at line 70 of file frame.h.
◆ libwifi_control_subtypes
Enumerator |
---|
SUBTYPE_TACK | |
SUBTYPE_BEAMFORM_REPORT_POLL | |
SUBTYPE_VHT_NDP_ANNOUNCE | |
SUBTYPE_CF_EXTENSION | |
SUBTYPE_WRAPPER | |
SUBTYPE_BLOCK_ACK_REQ | |
SUBTYPE_BLOCK_ACK | |
SUBTYPE_PS_POLL | |
SUBTYPE_RTS | |
SUBTYPE_CTS | |
SUBTYPE_ACK | |
SUBTYPE_CF_END | |
SUBTYPE_CF_END_CF_ACK | |
Definition at line 54 of file frame.h.
◆ libwifi_data_subtypes
Enumerator |
---|
SUBTYPE_DATA | |
SUBTYPE_DATA_NULL | |
SUBTYPE_DATA_QOS_DATA | |
SUBTYPE_DATA_QOS_DATA_CF_ACK | |
SUBTYPE_DATA_QOS_DATA_CF_POLL | |
SUBTYPE_DATA_QOS_DATA_CF_ACK_CF_POLL | |
SUBTYPE_DATA_QOS_NULL | |
SUBTYPE_DATA_QOS_CF_POLL | |
SUBTYPE_DATA_QOS_CF_ACK_CF_POLL | |
Definition at line 83 of file frame.h.
◆ libwifi_extension_subtypes
Enumerator |
---|
SUBTYPE_EXTENSION_DMG_BEACON | |
SUBTYPE_EXTENSION_SIG_BEACON | |
Definition at line 97 of file frame.h.
◆ libwifi_frame_type
Enumerator |
---|
TYPE_MANAGEMENT | |
TYPE_CONTROL | |
TYPE_DATA | |
TYPE_EXTENSION | |
Definition at line 30 of file frame.h.
◆ libwifi_mgmt_subtypes
Enumerator |
---|
SUBTYPE_ASSOC_REQ | |
SUBTYPE_ASSOC_RESP | |
SUBTYPE_REASSOC_REQ | |
SUBTYPE_REASSOC_RESP | |
SUBTYPE_PROBE_REQ | |
SUBTYPE_PROBE_RESP | |
SUBTYPE_TIME_ADV | |
SUBTYPE_BEACON | |
SUBTYPE_ATIM | |
SUBTYPE_DISASSOC | |
SUBTYPE_AUTH | |
SUBTYPE_DEAUTH | |
SUBTYPE_ACTION | |
SUBTYPE_ACTION_NOACK | |
Definition at line 36 of file frame.h.
◆ __attribute__()
◆ libwifi_free_wifi_frame()
◆ libwifi_get_wifi_frame()
int libwifi_get_wifi_frame |
( |
struct libwifi_frame * |
fi, |
|
|
const unsigned char * |
frame, |
|
|
size_t |
frame_len, |
|
|
int |
radiotap |
|
) |
| |
Convert a sniffed 802.11 frame into a libwifi_frame.
- Parameters
-
fi | A libwifi_frame struct |
frame | An 802.11 frame |
frame_len | Length of the sniffed 802.11 frame |
- Returns
Definition at line 35 of file frame.c.
◆ __attribute__
◆ addr1
◆ addr2
◆ addr3
◆ bit1
◆ bit10
◆ bit11
◆ bit12
◆ bit13
◆ bit14
◆ bit15
◆ bit16
◆ bit2
◆ bit3
◆ bit4
◆ bit5
◆ bit6
◆ bit7
◆ bit8
◆ bit9
◆ duration
◆ flags
◆ fragment_number
unsigned int fragment_number |
◆ frame_control
◆ from_ds
◆ ht_control
◆ more_data
◆ more_frags
◆ ordered
◆ power_mgmt
◆ protect
◆ qos_control
◆ retry
◆ seq_control
◆ sequence_number
unsigned int sequence_number |
◆ subtype
◆ to_ds
◆ type
◆ version