libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
probe_request.h File Reference

Go to the source code of this file.

Functions

int libwifi_parse_probe_req (struct libwifi_sta *sta, struct libwifi_frame *frame)
 Parse a probe request into a libwifi_sta. More...
 

Function Documentation

◆ libwifi_parse_probe_req()

int libwifi_parse_probe_req ( struct libwifi_sta sta,
struct libwifi_frame frame 
)

Parse a probe request into a libwifi_sta.

Parameters
staA libwifi_sta
frameA libwifi_frame
Returns
0 if successful, a negative number if not

Parse a probe request into a libwifi_sta.

This function also checks to see if the transmitter address can be ANDed with 0x02, to determine a likelihood of randomized addresses.

┌─────────────────────────────────────────────┐ │ Header (Ordered or Unordered) │ ── Probe Request Header ├─────────────────────────────────────────────┤ │ Tagged Parameters │ ── Probe Request Body └─────────────────────────────────────────────┘

Definition at line 36 of file probe_request.c.