libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
beacon.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include "../../core/frame/frame.h"
#include "../../core/frame/management/common.h"
#include "../../core/misc/security.h"

Go to the source code of this file.

Functions

int libwifi_parse_beacon (struct libwifi_bss *bss, struct libwifi_frame *frame)
 Parse useful properties from a beacon frame into a libwifi_bss. More...
 

Function Documentation

◆ libwifi_parse_beacon()

int libwifi_parse_beacon ( struct libwifi_bss bss,
struct libwifi_frame frame 
)

Parse useful properties from a beacon frame into a libwifi_bss.

Parameters
bssA libwifi_bss
frameA libwifi_frame
Returns
0 if successful, a negative number if not.

Parse useful properties from a beacon frame into a libwifi_bss.

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

Definition at line 41 of file beacon.c.