|
#define | WPA_TYPES_DEFINED |
|
#define | __LITTLE_ENDIAN 1234 |
|
#define | __BIG_ENDIAN 4321 |
|
#define | WPA_BYTE_SWAP_DEFINED |
|
#define | ETH_ALEN 6 |
|
#define | ETH_HLEN 14 |
|
#define | IFNAMSIZ 16 |
|
#define | ETH_P_ALL 0x0003 |
|
#define | ETH_P_80211_ENCAP 0x890d /* TDLS comes under this category */ |
|
#define | ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */ |
|
#define | ETH_P_EAPOL ETH_P_PAE |
|
#define | ETH_P_RSN_PREAUTH 0x88c7 |
|
#define | ETH_P_RRB 0x890D |
|
#define | PRINTF_FORMAT(a, b) |
|
#define | STRUCT_PACKED |
|
#define | MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5] |
|
#define | MACSTR "%02x:%02x:%02x:%02x:%02x:%02x" |
|
#define | COMPACT_MACSTR "%02x%02x%02x%02x%02x%02x" |
|
#define | BIT(x) (1U << (x)) |
|
#define | __force |
|
#define | __bitwise |
|
#define | __must_check |
|
#define | __maybe_unused |
|
#define | wpa_unicode2ascii_inplace(s) do { } while (0) |
|
#define | wpa_strdup_tchar(s) strdup((s)) |
|
#define | broadcast_ether_addr (const u8 *) "\xff\xff\xff\xff\xff\xff" |
|
#define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
|
#define | aliasing_hide_typecast(a, t) (t *) __hide_aliasing_typecast((a)) |
|
#define | WPA_MEM_DEFINED(ptr, len) do { } while (0) |
|
|
int | hwaddr_aton (const char *txt, u8 *addr) |
| Convert ASCII string to MAC address (colon-delimited format) More...
|
|
int | hwaddr_masked_aton (const char *txt, u8 *addr, u8 *mask, u8 maskable) |
| Convert ASCII string with optional mask to MAC address (colon-delimited format) More...
|
|
int | hwaddr_compact_aton (const char *txt, u8 *addr) |
| Convert ASCII string to MAC address (no colon delimitors format) More...
|
|
int | hwaddr_aton2 (const char *txt, u8 *addr) |
| Convert ASCII string to MAC address (in any known format) More...
|
|
int | hex2byte (const char *hex) |
|
int | hexstr2bin (const char *hex, u8 *buf, size_t len) |
| Convert ASCII hex string into binary data. More...
|
|
void | inc_byte_array (u8 *counter, size_t len) |
| Increment arbitrary length byte array by one. More...
|
|
void | wpa_get_ntp_timestamp (u8 *buf) |
|
int | wpa_scnprintf (char *buf, size_t size, const char *fmt,...) |
| Simpler-to-use snprintf function. More...
|
|
int | wpa_snprintf_hex_sep (char *buf, size_t buf_size, const u8 *data, size_t len, char sep) |
|
int | wpa_snprintf_hex (char *buf, size_t buf_size, const u8 *data, size_t len) |
| Print data as a hex string into a buffer. More...
|
|
int | wpa_snprintf_hex_uppercase (char *buf, size_t buf_size, const u8 *data, size_t len) |
| Print data as a upper case hex string into buf. More...
|
|
int | hwaddr_mask_txt (char *buf, size_t len, const u8 *addr, const u8 *mask) |
|
void | printf_encode (char *txt, size_t maxlen, const u8 *data, size_t len) |
|
size_t | printf_decode (u8 *buf, size_t maxlen, const char *str) |
|
const char * | wpa_ssid_txt (const u8 *ssid, size_t ssid_len) |
| Convert SSID to a printable string. More...
|
|
char * | wpa_config_parse_string (const char *value, size_t *len) |
|
int | is_hex (const u8 *data, size_t len) |
|
size_t | merge_byte_arrays (u8 *res, size_t res_len, const u8 *src1, size_t src1_len, const u8 *src2, size_t src2_len) |
|
char * | dup_binstr (const void *src, size_t len) |
|
int | freq_range_list_parse (struct wpa_freq_range_list *res, const char *value) |
|
int | freq_range_list_includes (const struct wpa_freq_range_list *list, unsigned int freq) |
|
char * | freq_range_list_str (const struct wpa_freq_range_list *list) |
|
int | int_array_len (const int *a) |
|
void | int_array_concat (int **res, const int *a) |
|
void | int_array_sort_unique (int *a) |
|
void | int_array_add_unique (int **res, int a) |
|
void | str_clear_free (char *str) |
|
void | bin_clear_free (void *bin, size_t len) |
|
int | random_mac_addr (u8 *addr) |
|
int | random_mac_addr_keep_oui (u8 *addr) |
|
const char * | cstr_token (const char *str, const char *delim, const char **last) |
| Get next token from const char string. More...
|
|
char * | str_token (char *str, const char *delim, char **context) |
| Get next token from a string. More...
|
|
size_t | utf8_escape (const char *inp, size_t in_size, char *outp, size_t out_size) |
|
size_t | utf8_unescape (const char *inp, size_t in_size, char *outp, size_t out_size) |
|
int | is_ctrl_char (char c) |
|
void * | __hide_aliasing_typecast (void *foo) |
|
wpa_supplicant/hostapd / common helper functions, etc.