#include "action.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
size_t | libwifi_add_action_detail (struct libwifi_action_detail *detail, const unsigned char *data, size_t data_len) |
| Create a detail for an action frame by supplying raw data and it's length. More...
|
|
void | libwifi_free_action_detail (struct libwifi_action_detail *detail) |
| Free all memory in a given libwifi_action_detail. More...
|
|
int | libwifi_create_action (struct libwifi_action *action, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint8_t category) |
| Create a new action frame with a specified action and category. More...
|
|
int | libwifi_create_action_no_ack (struct libwifi_action *action, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint8_t category) |
|
size_t | libwifi_get_action_length (struct libwifi_action *action) |
| Get the length of a given libwifi_action. More...
|
|
size_t | libwifi_dump_action (struct libwifi_action *action, unsigned char *buf, size_t buf_len) |
| Dump a given libwifi_action to a raw buffer. More...
|
|
void | libwifi_free_action (struct libwifi_action *action) |
| Free data associated to a given libwifi_action. More...
|
|
◆ libwifi_add_action_detail()
size_t libwifi_add_action_detail |
( |
struct libwifi_action_detail * |
detail, |
|
|
const unsigned char * |
data, |
|
|
size_t |
data_len |
|
) |
| |
Create a detail for an action frame by supplying raw data and it's length.
New data can be added to an existing libwifi_action_detail.
- Parameters
-
- Returns
- Length of the action, or negative error
Definition at line 22 of file action.c.
◆ libwifi_create_action()
int libwifi_create_action |
( |
struct libwifi_action * |
action, |
|
|
const unsigned char |
receiver[6], |
|
|
const unsigned char |
transmitter[6], |
|
|
const unsigned char |
address3[6], |
|
|
uint8_t |
category |
|
) |
| |
Create a new action frame with a specified action and category.
- Parameters
-
action | A new libwifi_action struct |
receiver | The receiver MAC address |
transmitter | The transmitter MAC address |
address3 | The address 3 frame field value, typically the BSSID |
category | The action frame category |
- Returns
- Zero on success, or negative error
Definition at line 49 of file action.c.
◆ libwifi_create_action_no_ack()
int libwifi_create_action_no_ack |
( |
struct libwifi_action * |
action, |
|
|
const unsigned char |
receiver[6], |
|
|
const unsigned char |
transmitter[6], |
|
|
const unsigned char |
address3[6], |
|
|
uint8_t |
category |
|
) |
| |
◆ libwifi_dump_action()
size_t libwifi_dump_action |
( |
struct libwifi_action * |
action, |
|
|
unsigned char * |
buf, |
|
|
size_t |
buf_len |
|
) |
| |
Dump a given libwifi_action to a raw buffer.
- Parameters
-
action | A used libwifi_action struct |
buf | A buffer receiver |
buf_len | The length of the given buf |
- Returns
- Bytes written to the buf, or negative error
Definition at line 94 of file action.c.
◆ libwifi_free_action()
◆ libwifi_free_action_detail()
◆ libwifi_get_action_length()