16#ifndef LIBWIFI_CORE_FRAME_H
17#define LIBWIFI_CORE_FRAME_H
19#include "../../core/misc/byteswap.h"
25#define LIBWIFI_FLAGS_FCS_PRESENT (1 << 0)
26#define LIBWIFI_FLAGS_IS_QOS (1 << 1)
27#define LIBWIFI_FLAGS_IS_ORDERED (1 << 2)
void libwifi_free_wifi_frame(struct libwifi_frame *fi)
Free any dynamically allocated data inside a libwifi_frame.
@ SUBTYPE_DATA_QOS_CF_ACK_CF_POLL
@ SUBTYPE_DATA_QOS_CF_POLL
@ SUBTYPE_DATA_QOS_DATA_CF_POLL
@ SUBTYPE_DATA_QOS_DATA_CF_ACK
@ SUBTYPE_DATA_QOS_DATA_CF_ACK_CF_POLL
libwifi_extension_subtypes
@ SUBTYPE_EXTENSION_DMG_BEACON
@ SUBTYPE_EXTENSION_SIG_BEACON
union libwifi_frame_header __attribute__
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.
@ SUBTYPE_BEAMFORM_REPORT_POLL
@ SUBTYPE_VHT_NDP_ANNOUNCE
libwifi_control_extension_subtypes
@ SUBTYPE_CF_EXT_SSW_FEEDBACK
@ SUBTYPE_CF_EXT_GRANT_ACK
struct libwifi_frame_ctrl_flags flags
union libwifi_frame_header header
struct libwifi_frame_ctrl frame_control
unsigned int sequence_number
unsigned int fragment_number