17#include "../../core/misc/byteswap.h"
36 const unsigned char receiver[6],
37 const unsigned char transmitter[6],
38 const unsigned char address3[6],
64 if (auth_len > buf_len) {
size_t libwifi_get_auth_length(struct libwifi_auth *auth)
The length of an authentication frame is the sum of the header length, the fixed parameters length,...
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)
The generated authentication frame is made with sane defaults defined in common.h.
size_t libwifi_dump_auth(struct libwifi_auth *auth, unsigned char *buf, size_t buf_len)
Copy a libwifi_auth into a regular unsigned char buffer.
void libwifi_free_auth(struct libwifi_auth *auth)
Because the tagged parameters memory is managed inside of the library, the library must be the one to...
struct libwifi_tagged_parameters tags
uint16_t transaction_sequence
uint16_t algorithm_number
uint16_t transaction_sequence
uint16_t algorithm_number
struct libwifi_tagged_parameters tags
struct libwifi_auth_fixed_parameters fixed_parameters
struct libwifi_mgmt_unordered_frame_header frame_header
unsigned int sequence_number
unsigned char * parameters