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_deauth_length (struct libwifi_deauth *deauth) |
Calculate the length of a given libwifi_deauth. More... | |
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) |
Generate a populated libwifi deauth. More... | |
size_t | libwifi_dump_deauth (struct libwifi_deauth *deauth, unsigned char *buf, size_t buf_len) |
Dump a libwifi_deauth into a raw format for packet injection. More... | |
void | libwifi_free_deauth (struct libwifi_deauth *deauth) |
Free any memory claimed by a libwifi_deauth back to the system. More... | |
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 | ||
) |
Generate a populated libwifi deauth.
A generated libwifi deauth can be "dumped" into a buffer for packet injection via the libwifi_dump_deauth.
deauth | A libwifi_deauth |
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 deauth reason code |
Generate a populated libwifi deauth.
Definition at line 36 of file deauthentication.c.
size_t libwifi_dump_deauth | ( | struct libwifi_deauth * | deauth, |
unsigned char * | buf, | ||
size_t | buf_len | ||
) |
Dump a libwifi_deauth into a raw format for packet injection.
deauth | A libwifi_deauth |
buf | The output buffer for the frame data |
buf_len | The length of the output buffer |
Dump a libwifi_deauth into a raw format for packet injection.
This is useful when injecting generated libwifi frames.
Definition at line 60 of file deauthentication.c.
void libwifi_free_deauth | ( | struct libwifi_deauth * | deauth | ) |
Free any memory claimed by a libwifi_deauth back to the system.
deauth | A libwifi_deauth |
Free any memory claimed by a libwifi_deauth back to the system.
Definition at line 83 of file deauthentication.c.
size_t libwifi_get_deauth_length | ( | struct libwifi_deauth * | deauth | ) |
Calculate the length of a given libwifi_deauth.
deauth | A libwifi_deauth |
Calculate the length of a given libwifi_deauth.
Definition at line 27 of file deauthentication.c.