libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
|
Go to the source code of this file.
Functions | |
size_t | libwifi_get_disassoc_length (struct libwifi_disassoc *disassoc) |
Calculate the length of a given libwifi_disassoc. More... | |
int | libwifi_create_disassoc (struct libwifi_disassoc *disassoc, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint16_t reason_code) |
Generate a populated libwifi disassoc. More... | |
size_t | libwifi_dump_disassoc (struct libwifi_disassoc *disassoc, unsigned char *buf, size_t buf_len) |
Dump a libwifi_disassoc into a raw format for packet injection. More... | |
void | libwifi_free_disassoc (struct libwifi_disassoc *disassoc) |
Free any memory claimed by a libwifi_disassoc back to the system. More... | |
int libwifi_create_disassoc | ( | struct libwifi_disassoc * | disassoc, |
const unsigned char | receiver[6], | ||
const unsigned char | transmitter[6], | ||
const unsigned char | address3[6], | ||
uint16_t | reason_code | ||
) |
Generate a populated libwifi disassoc.
A generated libwifi disassoc can be "dumped" into a buffer for packet injection via the libwifi_dump_disassoc.
disassoc | A libwifi_disassoc |
receiver | The receiver MAC address, aka address 1 |
transmitter | The source MAC address, aka address 2 |
address3 | The address 3 frame field value, typically the BSSID |
reason_code | The disassoc reason code |
Generate a populated libwifi disassoc.
Definition at line 36 of file disassociation.c.
size_t libwifi_dump_disassoc | ( | struct libwifi_disassoc * | disassoc, |
unsigned char * | buf, | ||
size_t | buf_len | ||
) |
Dump a libwifi_disassoc into a raw format for packet injection.
disassoc | A libwifi_disassoc |
buf | The output buffer for the frame data |
buf_len | The length of the output buffer |
Dump a libwifi_disassoc into a raw format for packet injection.
This is useful when injecting generated libwifi frames.
Definition at line 60 of file disassociation.c.
void libwifi_free_disassoc | ( | struct libwifi_disassoc * | disassoc | ) |
Free any memory claimed by a libwifi_disassoc back to the system.
disassoc | A libwifi_disassoc |
Free any memory claimed by a libwifi_disassoc back to the system.
Definition at line 83 of file disassociation.c.
size_t libwifi_get_disassoc_length | ( | struct libwifi_disassoc * | disassoc | ) |
Calculate the length of a given libwifi_disassoc.
disassoc | A libwifi_disassoc |
Calculate the length of a given libwifi_disassoc.
Definition at line 27 of file disassociation.c.