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

Go to the source code of this file.

Functions

int libwifi_create_rts (struct libwifi_rts *rts, const unsigned char transmitter[6], const unsigned char receiver[6], uint16_t duration)
 Create a RTS Control frame. More...
 

Function Documentation

◆ libwifi_create_rts()

int libwifi_create_rts ( struct libwifi_rts rts,
const unsigned char  transmitter[6],
const unsigned char  receiver[6],
uint16_t  duration 
)

Create a RTS Control frame.

Parameters
rtsA fresh libwifi_rts struct
transmitterThe transmitter MAC address
receiverThe receiver MAC address
durationThe duration of the clear-to-send

Definition at line 20 of file rts.c.