libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
core.c File Reference
#include "core.h"
#include <stdlib.h>
#include <string.h>
#include <sys/random.h>

Go to the source code of this file.

Functions

void libwifi_random_mac (unsigned char buf[6], unsigned char prefix[3])
 Random MAC addresses, achieved by obtaining 6 bytes of /dev/urandom via getrandom() More...
 
void libwifi_dummy (void)
 Dummy linker test function. More...
 
const char * libwifi_get_version (void)
 Version. More...
 

Function Documentation

◆ libwifi_dummy()

void libwifi_dummy ( void  )

Dummy linker test function.

Dummy function for linker testing purposes.

Definition at line 37 of file core.c.

◆ libwifi_get_version()

const char * libwifi_get_version ( void  )

Version.

Obtain the version of libwifi.

Definition at line 44 of file core.c.

◆ libwifi_random_mac()

void libwifi_random_mac ( unsigned char  buf[6],
unsigned char  prefix[3] 
)

Random MAC addresses, achieved by obtaining 6 bytes of /dev/urandom via getrandom()

Function to randomly generate a MAC address.

Definition at line 24 of file core.c.