#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <stdarg.h>
#include <ctype.h>
#include <time.h>
#include <sys/time.h>
#include "common.h"
Include dependency graph for common.c:

Go to the source code of this file.
Functions | |
| int | hostapd_get_rand (u8 *buf, size_t len) |
| void | hostapd_hexdump (const char *title, const u8 *buf, size_t len) |
| int | hwaddr_aton (const char *txt, u8 *addr) |
| Convert ASCII string to MAC address. | |
| int | hexstr2bin (const char *hex, u8 *buf, size_t len) |
| Convert ASCII hex string into binary data. | |
| char * | rel2abs_path (const char *rel_path) |
| void | inc_byte_array (u8 *counter, size_t len) |
| Increment arbitrary length byte array by one. | |
| void | print_char (char c) |
| void | fprint_char (FILE *f, char c) |
| void | wpa_debug_print_timestamp (void) |
| Print timestamp for debug output. | |
| void | wpa_printf (int level, char *fmt,...) |
| conditional printf | |
| void | wpa_hexdump (int level, const char *title, const u8 *buf, size_t len) |
| conditional hex dump | |
| void | wpa_hexdump_key (int level, const char *title, const u8 *buf, size_t len) |
| conditional hex dump, hide keys | |
| void | wpa_hexdump_ascii (int level, const char *title, const u8 *buf, size_t len) |
| conditional hex dump | |
| void | wpa_hexdump_ascii_key (int level, const char *title, const u8 *buf, size_t len) |
| conditional hex dump, hide keys | |
Variables | |
| int | wpa_debug_level = MSG_INFO |
| int | wpa_debug_show_keys = 0 |
| int | wpa_debug_timestamp = 0 |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file common.c.
|
||||||||||||||||
|
Convert ASCII hex string into binary data.
|
|
||||||||||||
|
Convert ASCII string to MAC address.
|
|
||||||||||||
|
Increment arbitrary length byte array by one.
|
|
|
Print timestamp for debug output. This function prints a timestamp in <seconds from 1970>.<microsoconds> format if debug output has been configured to include timestamps in debug messages. |
|
||||||||||||||||||||
|
conditional hex dump
|
|
||||||||||||||||||||
|
conditional hex dump
|
|
||||||||||||||||||||
|
conditional hex dump, hide keys
|
|
||||||||||||||||||||
|
conditional hex dump, hide keys
|
|
||||||||||||||||
|
conditional printf
Note: New line ' Definition at line 270 of file common.c. Here is the call graph for this function: ![]() |
1.4.2