libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
deauthentication.c File Reference
#include "deauthentication.h"
#include "common.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

int libwifi_parse_deauth (struct libwifi_parsed_deauth *deauth, struct libwifi_frame *frame)
 TODO: potentally write a parsed_to_gen function that converts a parsed deauth back into something that can be passed directly into the interface? More...
 

Function Documentation

◆ libwifi_parse_deauth()

int libwifi_parse_deauth ( struct libwifi_parsed_deauth deauth,
struct libwifi_frame frame 
)

TODO: potentally write a parsed_to_gen function that converts a parsed deauth back into something that can be passed directly into the interface?

Deauthentication frames can originate from the BSS or the STA, with no way to know who sent the frame by looking at just the frame alone. Because of this, they are parsed into a struct libwifi_parsed_deauth instead of a libwifi_bss or libwifi_sta.

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

Definition at line 41 of file deauthentication.c.