#include "core.h"
#include <stdlib.h>
#include <string.h>
#include <sys/random.h>
Go to the source code of this file.
◆ 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.