|
libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
|
#include "../../core/frame/frame.h"#include "../../core/frame/management/assoc_request.h"#include "../../core/frame/management/common.h"Go to the source code of this file.
Functions | |
| int | libwifi_create_assoc_req (struct libwifi_assoc_req *assoc_req, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], const char *ssid, uint8_t channel) |
| Create a new association request. More... | |
| size_t | libwifi_get_assoc_req_length (struct libwifi_assoc_req *assoc_req) |
| Get the length of a given libwifi_assoc_req. More... | |
| size_t | libwifi_dump_assoc_req (struct libwifi_assoc_req *assoc_req, unsigned char *buf, size_t buf_len) |
| Dump a libwifi_assoc_req into a raw format for packet injection. More... | |
| void | libwifi_free_assoc_req (struct libwifi_assoc_req *assoc_req) |
| Free any memory claimed by a libwifi_assoc_req back to the system. More... | |
| int libwifi_create_assoc_req | ( | struct libwifi_assoc_req * | assoc_req, |
| const unsigned char | receiver[6], | ||
| const unsigned char | transmitter[6], | ||
| const unsigned char | address3[6], | ||
| const char * | ssid, | ||
| uint8_t | channel | ||
| ) |
Create a new association request.
| assoc_req | A new libwifi_assoc_req struct |
| receiver | The receiver MAC address |
| transmitter | The transmitter MAC address |
| address3 | The address 3 frame field value, typically the BSSID |
| ssid | The desired BSS SSID |
| channel | The desired channel |
| Zero | on success, or negative error |
Create a new association request.
Two tagged parameters are also added to the association request: SSID and Channel.
Definition at line 36 of file assoc_request.c.
| size_t libwifi_dump_assoc_req | ( | struct libwifi_assoc_req * | assoc_req, |
| unsigned char * | buf, | ||
| size_t | buf_len | ||
| ) |
Dump a libwifi_assoc_req into a raw format for packet injection.
| assoc_req | A libwifi_assoc_req struct |
| buf | The buffer to dump into |
| buf_len | The length of the supplied buffer |
| The | amount of bytes dumped, or negative error |
Dump a libwifi_assoc_req into a raw format for packet injection.
This is useful when injecting generated libwifi frames.
Definition at line 71 of file assoc_request.c.
| void libwifi_free_assoc_req | ( | struct libwifi_assoc_req * | assoc_req | ) |
Free any memory claimed by a libwifi_assoc_req back to the system.
| assoc_req | A libwifi_assoc_req |
Free any memory claimed by a libwifi_assoc_req back to the system.
Definition at line 94 of file assoc_request.c.
| size_t libwifi_get_assoc_req_length | ( | struct libwifi_assoc_req * | assoc_req | ) |
Get the length of a given libwifi_assoc_req.
| assoc_req | A libwifi_assoc_req struct |
Get the length of a given libwifi_assoc_req.
Definition at line 27 of file assoc_request.c.