test: add IP reassembly test case for pcap IO

This commit is contained in:
luwenpeng
2024-10-23 15:24:10 +08:00
parent 99d933bd8d
commit 08b5ecd728
9 changed files with 289 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ struct session_debugger_exdata
static void session_debugger_log(int fd, const char *fmt, ...)
{
static const char *module = "session_debugger";
static const char *module = "session debugger";
static unsigned char weekday_str[7][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
static unsigned char month_str[12][4] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
@@ -317,7 +317,7 @@ struct stellar_module *session_debugger_on_init(struct stellar_module_manager *m
}
stellar_module_set_ctx(dbg_mod, dbg);
STELLAR_LOG_FATAL(dbg->logger, "session_debugger", "session_debugger initialized")
STELLAR_LOG_FATAL(dbg->logger, "session debugger", "session_debugger initialized")
return dbg_mod;
}
@@ -329,7 +329,7 @@ void session_debugger_on_exit(struct stellar_module_manager *mod_mgr, struct ste
struct session_debugger *dbg = stellar_module_get_ctx(mod);
if (dbg)
{
STELLAR_LOG_FATAL(dbg->logger, "session_debugger", "session_debugger exited")
STELLAR_LOG_FATAL(dbg->logger, "session debugger", "session_debugger exited")
session_debugger_free(dbg);
}
stellar_module_free(mod);