17#include "../../core/misc/byteswap.h"
37 const unsigned char receiver[6],
38 const unsigned char transmitter[6],
39 const unsigned char address3[6],
62 if (deauth_len > buf_len) {
struct libwifi_tagged_parameters tags
size_t libwifi_dump_deauth(struct libwifi_deauth *deauth, unsigned char *buf, size_t buf_len)
Copy a libwifi_deauth into a regular unsigned char buffer.
void libwifi_free_deauth(struct libwifi_deauth *deauth)
Because the tagged parameters memory is managed inside of the library, the library must be the one to...
int libwifi_create_deauth(struct libwifi_deauth *deauth, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint16_t reason_code)
The generated deauthentication frame contains only the supplied receiver, transmitter and reason_code...
size_t libwifi_get_deauth_length(struct libwifi_deauth *deauth)
The length of a deauth frame is the sum of the header length, the fixed parameters length,...
Deauthentication Layout ────────────────────────── ┌──────────────────────────┐ │ Header │ Bytes: 24 ...
struct libwifi_tagged_parameters tags
struct libwifi_deauth_fixed_parameters fixed_parameters
struct libwifi_mgmt_unordered_frame_header frame_header
unsigned int sequence_number
unsigned char * parameters