|
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_auth_length (struct libwifi_auth *auth) |
| Calculate the length of a given libwifi_auth. More... | |
| int | libwifi_create_auth (struct libwifi_auth *auth, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint16_t algorithm_number, uint16_t transaction_sequence, uint16_t status_code) |
| Generate a populated libwifi auth. More... | |
| size_t | libwifi_dump_auth (struct libwifi_auth *auth, unsigned char *buf, size_t buf_len) |
| Dump a libwifi_auth into a raw format for packet injection. More... | |
| void | libwifi_free_auth (struct libwifi_auth *auth) |
| Free any memory claimed by a libwifi_auth back to the system. More... | |
| int libwifi_create_auth | ( | struct libwifi_auth * | auth, |
| const unsigned char | receiver[6], | ||
| const unsigned char | transmitter[6], | ||
| const unsigned char | address3[6], | ||
| uint16_t | algorithm_number, | ||
| uint16_t | transaction_sequence, | ||
| uint16_t | status_code | ||
| ) |
Generate a populated libwifi auth.
A generated libwifi auth can be "dumped" into a buffer for packet injection via the libwifi_dump_auth.
| auth | A libwifi_auth |
| 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 |
| algorithm_number | Algorithm type to use, as defined in the IEEE802.11 spec |
| transaction_sequence | Transaction sequence value to use |
| status_code | Status code to use, as defined in the IEEE802.11 spec |
Generate a populated libwifi auth.
Definition at line 35 of file authentication.c.
| size_t libwifi_dump_auth | ( | struct libwifi_auth * | auth, |
| unsigned char * | buf, | ||
| size_t | buf_len | ||
| ) |
Dump a libwifi_auth into a raw format for packet injection.
| auth | A libwifi_auth |
| buf | The output buffer for the frame data |
| buf_len | The length of the output buffer |
Dump a libwifi_auth into a raw format for packet injection.
This is useful when injecting generated libwifi frames.
Definition at line 62 of file authentication.c.
| void libwifi_free_auth | ( | struct libwifi_auth * | auth | ) |
Free any memory claimed by a libwifi_auth back to the system.
| auth | A libwifi_auth |
Free any memory claimed by a libwifi_auth back to the system.
Definition at line 85 of file authentication.c.
| size_t libwifi_get_auth_length | ( | struct libwifi_auth * | auth | ) |
Calculate the length of a given libwifi_auth.
| auth | A libwifi_auth |
Calculate the length of a given libwifi_auth.
Definition at line 27 of file authentication.c.