17#include "../../core/misc/byteswap.h"
35 const unsigned char receiver[6],
36 const unsigned char transmitter[6],
37 const unsigned char address3[6],
64 if (probe_req_len > buf_len) {
struct libwifi_tagged_parameters tags
struct libwifi_radiotap_channel channel
int libwifi_create_probe_req(struct libwifi_probe_req *probe_req, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], const char *ssid, uint8_t channel)
The generated probe request frame is made with sane defaults defined in common.h.
void libwifi_free_probe_req(struct libwifi_probe_req *probe_req)
Because the tagged parameters memory is managed inside of the library, the library must be the one to...
size_t libwifi_dump_probe_req(struct libwifi_probe_req *probe_req, unsigned char *buf, size_t buf_len)
Copy a libwifi_probe_req into a regular unsigned char buffer.
size_t libwifi_get_probe_req_length(struct libwifi_probe_req *probe_req)
The length of a probe request frame is the sum of the header length plus the tagged parameters length...
struct libwifi_tagged_parameters tags
struct libwifi_mgmt_unordered_frame_header frame_header
unsigned int sequence_number
unsigned char * parameters
int libwifi_quick_add_tag(struct libwifi_tagged_parameters *tags, int tag_number, const unsigned char *tag_data, size_t tag_length)
Add a tagged parameter via tag number and data to a management frame.