Go to the source code of this file.
Functions | |
static void | _wpa_hexdump (int level, const char *title, const u8 *buf, size_t len, int show) |
static void | _wpa_hexdump_ascii (int level, const char *title, const u8 *buf, size_t len, int show) |
void | hostapd_logger (void *ctx, const u8 *addr, unsigned int module, int level, const char *fmt,...) |
void | hostapd_logger_register_cb (hostapd_logger_cb_func func) |
void | wpa_debug_close_file (void) |
int | wpa_debug_open_file (const char *path) |
void | wpa_debug_print_timestamp (void) |
void | wpa_hexdump (int level, const char *title, const u8 *buf, size_t len) |
void | wpa_hexdump_ascii (int level, const char *title, const u8 *buf, size_t len) |
void | wpa_hexdump_ascii_key (int level, const char *title, const u8 *buf, size_t len) |
void | wpa_hexdump_key (int level, const char *title, const u8 *buf, size_t len) |
void | wpa_msg (void *ctx, int level, const char *fmt,...) |
void | wpa_msg_ctrl (void *ctx, int level, const char *fmt,...) |
void | wpa_msg_register_cb (wpa_msg_cb_func func) |
void | wpa_printf (int level, const char *fmt,...) |
Variables | |
static hostapd_logger_cb_func | hostapd_logger_cb = NULL |
int | wpa_debug_level = MSG_INFO |
int | wpa_debug_show_keys = 0 |
int | wpa_debug_timestamp = 0 |
static wpa_msg_cb_func | wpa_msg_cb = NULL |
static void _wpa_hexdump | ( | int | level, |
const char * | title, | ||
const u8 * | buf, | ||
size_t | len, | ||
int | show | ||
) | [static] |
Definition at line 129 of file wpa_debug.c.
static void _wpa_hexdump_ascii | ( | int | level, |
const char * | title, | ||
const u8 * | buf, | ||
size_t | len, | ||
int | show | ||
) | [static] |
Definition at line 178 of file wpa_debug.c.
void hostapd_logger | ( | void * | ctx, |
const u8 * | addr, | ||
unsigned int | module, | ||
int | level, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 374 of file wpa_debug.c.
void hostapd_logger_register_cb | ( | hostapd_logger_cb_func | func | ) |
hostapd_logger_register_cb - Register callback function for hostapd_logger() : Callback function (NULL to unregister)
Definition at line 368 of file wpa_debug.c.
void wpa_debug_close_file | ( | void | ) |
Definition at line 295 of file wpa_debug.c.
int wpa_debug_open_file | ( | const char * | path | ) |
Definition at line 276 of file wpa_debug.c.
void wpa_debug_print_timestamp | ( | void | ) |
wpa_debug_printf_timestamp - 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.
Definition at line 36 of file wpa_debug.c.
void wpa_hexdump | ( | int | level, |
const char * | title, | ||
const u8 * | buf, | ||
size_t | len | ||
) |
wpa_hexdump - conditional hex dump : priority level (MSG_*) of the message : title of for the message : data buffer to be dumped : length of the buf
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration. The contents of buf is printed out has hex dump.
Definition at line 166 of file wpa_debug.c.
void wpa_hexdump_ascii | ( | int | level, |
const char * | title, | ||
const u8 * | buf, | ||
size_t | len | ||
) |
wpa_hexdump_ascii - conditional hex dump : priority level (MSG_*) of the message : title of for the message : data buffer to be dumped : length of the buf
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration. The contents of buf is printed out has hex dump with both the hex numbers and ASCII characters (for printable range) are shown. 16 bytes per line will be shown.
Definition at line 263 of file wpa_debug.c.
void wpa_hexdump_ascii_key | ( | int | level, |
const char * | title, | ||
const u8 * | buf, | ||
size_t | len | ||
) |
wpa_hexdump_ascii_key - conditional hex dump, hide keys : priority level (MSG_*) of the message : title of for the message : data buffer to be dumped : length of the buf
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration. The contents of buf is printed out has hex dump with both the hex numbers and ASCII characters (for printable range) are shown. 16 bytes per line will be shown. This works like wpa_hexdump_ascii(), but by default, does not include secret keys (passwords, etc.) in debug output.
Definition at line 269 of file wpa_debug.c.
void wpa_hexdump_key | ( | int | level, |
const char * | title, | ||
const u8 * | buf, | ||
size_t | len | ||
) |
wpa_hexdump_key - conditional hex dump, hide keys : priority level (MSG_*) of the message : title of for the message : data buffer to be dumped : length of the buf
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration. The contents of buf is printed out has hex dump. This works like wpa_hexdump(), but by default, does not include secret keys (passwords, etc.) in debug output.
Definition at line 172 of file wpa_debug.c.
void wpa_msg | ( | void * | ctx, |
int | level, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 317 of file wpa_debug.c.
void wpa_msg_ctrl | ( | void * | ctx, |
int | level, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 340 of file wpa_debug.c.
void wpa_msg_register_cb | ( | wpa_msg_cb_func | func | ) |
wpa_msg_register_cb - Register callback function for wpa_msg() messages : Callback function (NULL to unregister)
Definition at line 311 of file wpa_debug.c.
void wpa_printf | ( | int | level, |
const char * | fmt, | ||
... | |||
) |
wpa_printf - conditional printf : priority level (MSG_*) of the message : printf format string, followed by optional arguments
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration.
Note: New line '
' is added to the end of the text when printing to stdout.
Definition at line 98 of file wpa_debug.c.
hostapd_logger_cb_func hostapd_logger_cb = NULL [static] |
Definition at line 366 of file wpa_debug.c.
int wpa_debug_level = MSG_INFO |
Definition at line 29 of file wpa_debug.c.
int wpa_debug_show_keys = 0 |
Definition at line 30 of file wpa_debug.c.
int wpa_debug_timestamp = 0 |
Definition at line 31 of file wpa_debug.c.
wpa_msg_cb_func wpa_msg_cb = NULL [static] |
Definition at line 309 of file wpa_debug.c.