Go to the source code of this file.
◆ LIBWIFI_BCAST_MAC
#define LIBWIFI_BCAST_MAC "\xFF\xFF\xFF\xFF\xFF\xFF" |
Commonly used fixed fields.
Definition at line 26 of file core.h.
◆ LIBWIFI_VERSION
#define LIBWIFI_VERSION "UNSET_VERSION" |
◆ LIBWIFI_ZERO_MAC
#define LIBWIFI_ZERO_MAC "\x00\x00\x00\x00\x00\x00" |
◆ MAC2STR
#define MAC2STR |
( |
|
a | ) |
(a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5] |
Helpers for MAC Addresses.
Definition at line 32 of file core.h.
◆ MACSTR
#define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x" |
◆ libwifi_dummy()
void libwifi_dummy |
( |
void |
| ) |
|
Dummy function for linker testing purposes.
Dummy function for linker testing purposes.
Definition at line 37 of file core.c.
◆ libwifi_get_version()
const char * libwifi_get_version |
( |
void |
| ) |
|
Obtain the version of libwifi.
- Returns
- The version of the installed libwifi.
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] |
|
) |
| |
Function to randomly generate a MAC address.
- Parameters
-
buf | A buffer for the generated MAC to be written to |
prefix | An optional OUI prefix |
Function to randomly generate a MAC address.
Definition at line 24 of file core.c.