update IPv6 utils

This commit is contained in:
luwenpeng
2024-02-21 15:06:48 +08:00
parent bd3735d3c4
commit 5e5ac458f2
8 changed files with 118 additions and 20 deletions

View File

@@ -31,7 +31,12 @@ struct log_context
int log_file_reopen_day;
};
struct log_context g_log_context;
struct log_context g_log_context = {
.config = {.output = LOG_OUTPUT_STDERR, .level = LOG_DEBUG},
.log_fd = -1,
.log_file_reopen_day = 0,
};
struct log_context *g_log_ctx = &g_log_context;
static unsigned char weekday_str[7][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};