output-tx: remove ThreadExitPrintStats callback

After removing the exit stats function from log-tlslog, this callback
is no longer used.

Ticket: #7227
pull/11689/head
Jason Ish 12 months ago committed by Victor Julien
parent 0f7eac62f5
commit 7397b7a00f

@ -65,7 +65,7 @@ int LogHttpLogger(ThreadVars *tv, void *thread_data, const Packet *, Flow *f, vo
void LogHttpLogRegister (void) void LogHttpLogRegister (void)
{ {
OutputRegisterTxModule(LOGGER_HTTP, MODULE_NAME, "http-log", LogHttpLogInitCtx, ALPROTO_HTTP1, OutputRegisterTxModule(LOGGER_HTTP, MODULE_NAME, "http-log", LogHttpLogInitCtx, ALPROTO_HTTP1,
LogHttpLogger, LogHttpLogThreadInit, LogHttpLogThreadDeinit, NULL); LogHttpLogger, LogHttpLogThreadInit, LogHttpLogThreadDeinit);
} }
#define LOG_HTTP_CF_REQUEST_HOST 'h' #define LOG_HTTP_CF_REQUEST_HOST 'h'

@ -501,5 +501,5 @@ void LogTlsLogRegister(void)
{ {
OutputRegisterTxModuleWithProgress(LOGGER_TLS, MODULE_NAME, "tls-log", LogTlsLogInitCtx, OutputRegisterTxModuleWithProgress(LOGGER_TLS, MODULE_NAME, "tls-log", LogTlsLogInitCtx,
ALPROTO_TLS, LogTlsLogger, TLS_HANDSHAKE_DONE, TLS_HANDSHAKE_DONE, LogTlsLogThreadInit, ALPROTO_TLS, LogTlsLogger, TLS_HANDSHAKE_DONE, TLS_HANDSHAKE_DONE, LogTlsLogThreadInit,
LogTlsLogThreadDeinit, NULL); LogTlsLogThreadDeinit);
} }

@ -437,11 +437,11 @@ void LogTlsStoreRegister (void)
{ {
OutputRegisterTxModuleWithCondition(LOGGER_TLS_STORE, MODULE_NAME, "tls-store", OutputRegisterTxModuleWithCondition(LOGGER_TLS_STORE, MODULE_NAME, "tls-store",
LogTlsStoreLogInitCtx, ALPROTO_TLS, LogTlsStoreLogger, LogTlsStoreCondition, LogTlsStoreLogInitCtx, ALPROTO_TLS, LogTlsStoreLogger, LogTlsStoreCondition,
LogTlsStoreLogThreadInit, LogTlsStoreLogThreadDeinit, NULL); LogTlsStoreLogThreadInit, LogTlsStoreLogThreadDeinit);
OutputRegisterTxModuleWithCondition(LOGGER_TLS_STORE_CLIENT, MODULE_NAME, "tls-store", OutputRegisterTxModuleWithCondition(LOGGER_TLS_STORE_CLIENT, MODULE_NAME, "tls-store",
LogTlsStoreLogInitCtx, ALPROTO_TLS, LogTlsStoreLoggerClient, LogTlsStoreConditionClient, LogTlsStoreLogInitCtx, ALPROTO_TLS, LogTlsStoreLoggerClient, LogTlsStoreConditionClient,
LogTlsStoreLogThreadInit, LogTlsStoreLogThreadDeinit, NULL); LogTlsStoreLogThreadInit, LogTlsStoreLogThreadDeinit);
SC_ATOMIC_INIT(cert_id); SC_ATOMIC_INIT(cert_id);
SC_ATOMIC_SET(cert_id, 1); SC_ATOMIC_SET(cert_id, 1);

@ -454,8 +454,7 @@ void JsonAnomalyLogRegister (void)
JsonAnomalyLogInitCtxSub, JsonAnomalyLogger, JsonAnomalyLogCondition, JsonAnomalyLogInitCtxSub, JsonAnomalyLogger, JsonAnomalyLogCondition,
JsonAnomalyLogThreadInit, JsonAnomalyLogThreadDeinit); JsonAnomalyLogThreadInit, JsonAnomalyLogThreadDeinit);
OutputRegisterTxSubModule(LOGGER_JSON_ANOMALY, "eve-log", MODULE_NAME, OutputRegisterTxSubModule(LOGGER_JSON_ANOMALY, "eve-log", MODULE_NAME, "eve-log.anomaly",
"eve-log.anomaly", JsonAnomalyLogInitCtxHelper, ALPROTO_UNKNOWN, JsonAnomalyLogInitCtxHelper, ALPROTO_UNKNOWN, JsonAnomalyTxLogger,
JsonAnomalyTxLogger, JsonAnomalyLogThreadInit, JsonAnomalyLogThreadInit, JsonAnomalyLogThreadDeinit);
JsonAnomalyLogThreadDeinit, NULL);
} }

@ -69,7 +69,7 @@ void JsonDCERPCLogRegister(void)
/* Register as an eve sub-module. */ /* Register as an eve sub-module. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonDCERPCLog", "eve-log.dcerpc", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonDCERPCLog", "eve-log.dcerpc",
DCERPCLogInitSub, ALPROTO_DCERPC, JsonDCERPCLogger, JsonLogThreadInit, DCERPCLogInitSub, ALPROTO_DCERPC, JsonDCERPCLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("DCERPC JSON logger registered."); SCLogDebug("DCERPC JSON logger registered.");
} }

@ -148,5 +148,5 @@ void JsonDHCPLogRegister(void)
/* Register as an eve sub-module. */ /* Register as an eve sub-module. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonDHCPLog", "eve-log.dhcp", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonDHCPLog", "eve-log.dhcp",
OutputDHCPLogInitSub, ALPROTO_DHCP, JsonDHCPLogger, JsonDHCPLogThreadInit, OutputDHCPLogInitSub, ALPROTO_DHCP, JsonDHCPLogger, JsonDHCPLogThreadInit,
JsonDHCPLogThreadDeinit, NULL); JsonDHCPLogThreadDeinit);
} }

@ -365,5 +365,5 @@ void JsonDNP3LogRegister(void)
{ {
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonDNP3Log", "eve-log.dnp3", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonDNP3Log", "eve-log.dnp3",
OutputDNP3LogInitSub, ALPROTO_DNP3, JsonDNP3Logger, JsonDNP3LogThreadInit, OutputDNP3LogInitSub, ALPROTO_DNP3, JsonDNP3Logger, JsonDNP3LogThreadInit,
JsonDNP3LogThreadDeinit, NULL); JsonDNP3LogThreadDeinit);
} }

@ -672,12 +672,12 @@ void JsonDnsLogRegister (void)
{ {
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", MODULE_NAME, "eve-log.dns", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", MODULE_NAME, "eve-log.dns",
JsonDnsLogInitCtxSub, ALPROTO_DNS, JsonDnsLogger, LogDnsLogThreadInit, JsonDnsLogInitCtxSub, ALPROTO_DNS, JsonDnsLogger, LogDnsLogThreadInit,
LogDnsLogThreadDeinit, NULL); LogDnsLogThreadDeinit);
} }
void JsonDoh2LogRegister(void) void JsonDoh2LogRegister(void)
{ {
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonDoH2Log", "eve-log.doh2", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonDoH2Log", "eve-log.doh2",
JsonDnsLogInitCtxSub, ALPROTO_DOH2, JsonDoh2Logger, LogDnsLogThreadInit, JsonDnsLogInitCtxSub, ALPROTO_DOH2, JsonDoh2Logger, LogDnsLogThreadInit,
LogDnsLogThreadDeinit, NULL); LogDnsLogThreadDeinit);
} }

@ -654,5 +654,5 @@ void JsonHttpLogRegister (void)
/* register as child of eve-log */ /* register as child of eve-log */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonHttpLog", "eve-log.http", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonHttpLog", "eve-log.http",
OutputHttpLogInitSub, ALPROTO_HTTP1, JsonHttpLogger, JsonHttpLogThreadInit, OutputHttpLogInitSub, ALPROTO_HTTP1, JsonHttpLogger, JsonHttpLogThreadInit,
JsonHttpLogThreadDeinit, NULL); JsonHttpLogThreadDeinit);
} }

@ -184,5 +184,5 @@ void JsonIKELogRegister(void)
/* Register as an eve sub-module. */ /* Register as an eve sub-module. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonIKELog", "eve-log.ike", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonIKELog", "eve-log.ike",
OutputIKELogInitSub, ALPROTO_IKE, JsonIKELogger, JsonIKELogThreadInit, OutputIKELogInitSub, ALPROTO_IKE, JsonIKELogger, JsonIKELogThreadInit,
JsonIKELogThreadDeinit, NULL); JsonIKELogThreadDeinit);
} }

@ -194,5 +194,5 @@ void JsonMQTTLogRegister(void)
{ {
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonMQTTLog", "eve-log.mqtt", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonMQTTLog", "eve-log.mqtt",
OutputMQTTLogInitSub, ALPROTO_MQTT, JsonMQTTLogger, JsonMQTTLogThreadInit, OutputMQTTLogInitSub, ALPROTO_MQTT, JsonMQTTLogger, JsonMQTTLogThreadInit,
JsonMQTTLogThreadDeinit, NULL); JsonMQTTLogThreadDeinit);
} }

@ -111,7 +111,7 @@ void JsonNFSLogRegister(void)
{ {
/* Register as an eve sub-module. */ /* Register as an eve sub-module. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonNFSLog", "eve-log.nfs", NFSLogInitSub, OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonNFSLog", "eve-log.nfs", NFSLogInitSub,
ALPROTO_NFS, JsonNFSLogger, JsonLogThreadInit, JsonLogThreadDeinit, NULL); ALPROTO_NFS, JsonNFSLogger, JsonLogThreadInit, JsonLogThreadDeinit);
SCLogDebug("NFS JSON logger registered."); SCLogDebug("NFS JSON logger registered.");
} }

@ -192,7 +192,7 @@ void JsonPgsqlLogRegister(void)
/* Register as an eve sub-module. */ /* Register as an eve sub-module. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonPgsqlLog", "eve-log.pgsql", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonPgsqlLog", "eve-log.pgsql",
OutputPgsqlLogInitSub, ALPROTO_PGSQL, JsonPgsqlLogger, JsonPgsqlLogThreadInit, OutputPgsqlLogInitSub, ALPROTO_PGSQL, JsonPgsqlLogger, JsonPgsqlLogThreadInit,
JsonPgsqlLogThreadDeinit, NULL); JsonPgsqlLogThreadDeinit);
SCLogDebug("PostgreSQL JSON logger registered."); SCLogDebug("PostgreSQL JSON logger registered.");
} }

@ -80,7 +80,7 @@ void JsonSMBLogRegister(void)
{ {
/* Register as an eve sub-module. */ /* Register as an eve sub-module. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonSMBLog", "eve-log.smb", SMBLogInitSub, OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonSMBLog", "eve-log.smb", SMBLogInitSub,
ALPROTO_SMB, JsonSMBLogger, JsonLogThreadInit, JsonLogThreadDeinit, NULL); ALPROTO_SMB, JsonSMBLogger, JsonLogThreadInit, JsonLogThreadDeinit);
SCLogDebug("SMB JSON logger registered."); SCLogDebug("SMB JSON logger registered.");
} }

@ -193,5 +193,5 @@ void JsonSmtpLogRegister (void) {
/* register as child of eve-log */ /* register as child of eve-log */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonSmtpLog", "eve-log.smtp", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonSmtpLog", "eve-log.smtp",
OutputSmtpLogInitSub, ALPROTO_SMTP, JsonSmtpLogger, JsonSmtpLogThreadInit, OutputSmtpLogInitSub, ALPROTO_SMTP, JsonSmtpLogger, JsonSmtpLogThreadInit,
JsonSmtpLogThreadDeinit, NULL); JsonSmtpLogThreadDeinit);
} }

@ -718,5 +718,5 @@ void JsonTlsLogRegister (void)
/* register as child of eve-log */ /* register as child of eve-log */
OutputRegisterTxSubModuleWithProgress(LOGGER_JSON_TX, "eve-log", "JsonTlsLog", "eve-log.tls", OutputRegisterTxSubModuleWithProgress(LOGGER_JSON_TX, "eve-log", "JsonTlsLog", "eve-log.tls",
OutputTlsLogInitSub, ALPROTO_TLS, JsonTlsLogger, TLS_HANDSHAKE_DONE, TLS_HANDSHAKE_DONE, OutputTlsLogInitSub, ALPROTO_TLS, JsonTlsLogger, TLS_HANDSHAKE_DONE, TLS_HANDSHAKE_DONE,
JsonTlsLogThreadInit, JsonTlsLogThreadDeinit, NULL); JsonTlsLogThreadInit, JsonTlsLogThreadDeinit);
} }

@ -58,15 +58,13 @@ typedef struct OutputTxLogger_ {
int ts_log_progress; int ts_log_progress;
TmEcode (*ThreadInit)(ThreadVars *, const void *, void **); TmEcode (*ThreadInit)(ThreadVars *, const void *, void **);
TmEcode (*ThreadDeinit)(ThreadVars *, void *); TmEcode (*ThreadDeinit)(ThreadVars *, void *);
void (*ThreadExitPrintStats)(ThreadVars *, void *);
} OutputTxLogger; } OutputTxLogger;
static OutputTxLogger **list = NULL; static OutputTxLogger **list = NULL;
int OutputRegisterTxLogger(LoggerId id, const char *name, AppProto alproto, TxLogger LogFunc, int OutputRegisterTxLogger(LoggerId id, const char *name, AppProto alproto, TxLogger LogFunc,
void *initdata, int tc_log_progress, int ts_log_progress, TxLoggerCondition LogCondition, void *initdata, int tc_log_progress, int ts_log_progress, TxLoggerCondition LogCondition,
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
void (*ThreadExitPrintStats)(ThreadVars *, void *))
{ {
if (list == NULL) { if (list == NULL) {
list = SCCalloc(ALPROTO_MAX, sizeof(OutputTxLogger *)); list = SCCalloc(ALPROTO_MAX, sizeof(OutputTxLogger *));
@ -93,7 +91,6 @@ int OutputRegisterTxLogger(LoggerId id, const char *name, AppProto alproto, TxLo
op->logger_id = id; op->logger_id = id;
op->ThreadInit = ThreadInit; op->ThreadInit = ThreadInit;
op->ThreadDeinit = ThreadDeinit; op->ThreadDeinit = ThreadDeinit;
op->ThreadExitPrintStats = ThreadExitPrintStats;
if (alproto == ALPROTO_UNKNOWN) { if (alproto == ALPROTO_UNKNOWN) {
op->tc_log_progress = 0; op->tc_log_progress = 0;
@ -628,25 +625,6 @@ static TmEcode OutputTxLogThreadDeinit(ThreadVars *tv, void *thread_data)
return TM_ECODE_OK; return TM_ECODE_OK;
} }
static void OutputTxLogExitPrintStats(ThreadVars *tv, void *thread_data)
{
OutputTxLoggerThreadData *op_thread_data = (OutputTxLoggerThreadData *)thread_data;
for (AppProto alproto = 0; alproto < ALPROTO_MAX; alproto++) {
OutputLoggerThreadStore *store = op_thread_data->store[alproto];
OutputTxLogger *logger = list[alproto];
while (logger && store) {
if (logger->ThreadExitPrintStats) {
logger->ThreadExitPrintStats(tv, store->thread_data);
}
logger = logger->next;
store = store->next;
}
}
}
static uint32_t OutputTxLoggerGetActiveCount(void) static uint32_t OutputTxLoggerGetActiveCount(void)
{ {
uint32_t cnt = 0; uint32_t cnt = 0;
@ -676,8 +654,8 @@ void OutputTxLoggerRegister (void)
if (unlikely(list == NULL)) { if (unlikely(list == NULL)) {
FatalError("Failed to allocate OutputTx list"); FatalError("Failed to allocate OutputTx list");
} }
OutputRegisterRootLogger(OutputTxLogThreadInit, OutputTxLogThreadDeinit, OutputRegisterRootLogger(OutputTxLogThreadInit, OutputTxLogThreadDeinit, NULL, OutputTxLog,
OutputTxLogExitPrintStats, OutputTxLog, OutputTxLoggerGetActiveCount); OutputTxLoggerGetActiveCount);
} }
void OutputTxShutdown(void) void OutputTxShutdown(void)

@ -40,7 +40,7 @@ typedef bool (*TxLoggerCondition)(
int OutputRegisterTxLogger(LoggerId id, const char *name, AppProto alproto, TxLogger LogFunc, int OutputRegisterTxLogger(LoggerId id, const char *name, AppProto alproto, TxLogger LogFunc,
void *, int tc_log_progress, int ts_log_progress, TxLoggerCondition LogCondition, void *, int tc_log_progress, int ts_log_progress, TxLoggerCondition LogCondition,
ThreadInitFunc, ThreadDeinitFunc, void (*ThreadExitPrintStats)(ThreadVars *, void *)); ThreadInitFunc, ThreadDeinitFunc);
void OutputTxLoggerRegister (void); void OutputTxLoggerRegister (void);

@ -243,12 +243,10 @@ error:
* *
* \retval Returns 0 on success, -1 on failure. * \retval Returns 0 on success, -1 on failure.
*/ */
static void OutputRegisterTxModuleWrapper(LoggerId id, const char *name, static void OutputRegisterTxModuleWrapper(LoggerId id, const char *name, const char *conf_name,
const char *conf_name, OutputInitFunc InitFunc, AppProto alproto, OutputInitFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, int tc_log_progress,
TxLogger TxLogFunc, int tc_log_progress, int ts_log_progress, int ts_log_progress, TxLoggerCondition TxLogCondition, ThreadInitFunc ThreadInit,
TxLoggerCondition TxLogCondition, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats)
{ {
if (unlikely(TxLogFunc == NULL)) { if (unlikely(TxLogFunc == NULL)) {
goto error; goto error;
@ -270,7 +268,6 @@ static void OutputRegisterTxModuleWrapper(LoggerId id, const char *name,
module->ts_log_progress = ts_log_progress; module->ts_log_progress = ts_log_progress;
module->ThreadInit = ThreadInit; module->ThreadInit = ThreadInit;
module->ThreadDeinit = ThreadDeinit; module->ThreadDeinit = ThreadDeinit;
module->ThreadExitPrintStats = ThreadExitPrintStats;
TAILQ_INSERT_TAIL(&output_modules, module, entries); TAILQ_INSERT_TAIL(&output_modules, module, entries);
SCLogDebug("Tx logger \"%s\" registered.", name); SCLogDebug("Tx logger \"%s\" registered.", name);
@ -279,12 +276,10 @@ error:
FatalError("Fatal error encountered. Exiting..."); FatalError("Fatal error encountered. Exiting...");
} }
static void OutputRegisterTxSubModuleWrapper(LoggerId id, const char *parent_name, static void OutputRegisterTxSubModuleWrapper(LoggerId id, const char *parent_name, const char *name,
const char *name, const char *conf_name, OutputInitSubFunc InitFunc, const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
AppProto alproto, TxLogger TxLogFunc, int tc_log_progress, int tc_log_progress, int ts_log_progress, TxLoggerCondition TxLogCondition,
int ts_log_progress, TxLoggerCondition TxLogCondition, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats)
{ {
if (unlikely(TxLogFunc == NULL)) { if (unlikely(TxLogFunc == NULL)) {
goto error; goto error;
@ -307,7 +302,6 @@ static void OutputRegisterTxSubModuleWrapper(LoggerId id, const char *parent_nam
module->ts_log_progress = ts_log_progress; module->ts_log_progress = ts_log_progress;
module->ThreadInit = ThreadInit; module->ThreadInit = ThreadInit;
module->ThreadDeinit = ThreadDeinit; module->ThreadDeinit = ThreadDeinit;
module->ThreadExitPrintStats = ThreadExitPrintStats;
TAILQ_INSERT_TAIL(&output_modules, module, entries); TAILQ_INSERT_TAIL(&output_modules, module, entries);
SCLogDebug("Tx logger for alproto %d \"%s\" registered.", alproto, name); SCLogDebug("Tx logger for alproto %d \"%s\" registered.", alproto, name);
@ -324,27 +318,20 @@ error:
* *
* \retval Returns 0 on success, -1 on failure. * \retval Returns 0 on success, -1 on failure.
*/ */
void OutputRegisterTxModuleWithCondition(LoggerId id, const char *name, void OutputRegisterTxModuleWithCondition(LoggerId id, const char *name, const char *conf_name,
const char *conf_name, OutputInitFunc InitFunc, AppProto alproto, OutputInitFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
TxLogger TxLogFunc, TxLoggerCondition TxLogCondition, TxLoggerCondition TxLogCondition, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats)
{ {
OutputRegisterTxModuleWrapper(id, name, conf_name, InitFunc, alproto, OutputRegisterTxModuleWrapper(id, name, conf_name, InitFunc, alproto, TxLogFunc, -1, -1,
TxLogFunc, -1, -1, TxLogCondition, ThreadInit, ThreadDeinit, TxLogCondition, ThreadInit, ThreadDeinit);
ThreadExitPrintStats);
} }
void OutputRegisterTxSubModuleWithCondition(LoggerId id, void OutputRegisterTxSubModuleWithCondition(LoggerId id, const char *parent_name, const char *name,
const char *parent_name, const char *name, const char *conf_name, const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, TxLoggerCondition TxLogCondition, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
TxLoggerCondition TxLogCondition, ThreadInitFunc ThreadInit,
ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats)
{ {
OutputRegisterTxSubModuleWrapper(id, parent_name, name, conf_name, InitFunc, OutputRegisterTxSubModuleWrapper(id, parent_name, name, conf_name, InitFunc, alproto, TxLogFunc,
alproto, TxLogFunc, -1, -1, TxLogCondition, ThreadInit, ThreadDeinit, -1, -1, TxLogCondition, ThreadInit, ThreadDeinit);
ThreadExitPrintStats);
} }
/** /**
@ -355,27 +342,21 @@ void OutputRegisterTxSubModuleWithCondition(LoggerId id,
* *
* \retval Returns 0 on success, -1 on failure. * \retval Returns 0 on success, -1 on failure.
*/ */
void OutputRegisterTxModuleWithProgress(LoggerId id, const char *name, void OutputRegisterTxModuleWithProgress(LoggerId id, const char *name, const char *conf_name,
const char *conf_name, OutputInitFunc InitFunc, AppProto alproto, OutputInitFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, int tc_log_progress,
TxLogger TxLogFunc, int tc_log_progress, int ts_log_progress, int ts_log_progress, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats)
{ {
OutputRegisterTxModuleWrapper(id, name, conf_name, InitFunc, alproto, OutputRegisterTxModuleWrapper(id, name, conf_name, InitFunc, alproto, TxLogFunc,
TxLogFunc, tc_log_progress, ts_log_progress, NULL, ThreadInit, tc_log_progress, ts_log_progress, NULL, ThreadInit, ThreadDeinit);
ThreadDeinit, ThreadExitPrintStats);
} }
void OutputRegisterTxSubModuleWithProgress(LoggerId id, const char *parent_name, void OutputRegisterTxSubModuleWithProgress(LoggerId id, const char *parent_name, const char *name,
const char *name, const char *conf_name, OutputInitSubFunc InitFunc, const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
AppProto alproto, TxLogger TxLogFunc, int tc_log_progress, int tc_log_progress, int ts_log_progress, ThreadInitFunc ThreadInit,
int ts_log_progress, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats)
{ {
OutputRegisterTxSubModuleWrapper(id, parent_name, name, conf_name, InitFunc, OutputRegisterTxSubModuleWrapper(id, parent_name, name, conf_name, InitFunc, alproto, TxLogFunc,
alproto, TxLogFunc, tc_log_progress, ts_log_progress, NULL, ThreadInit, tc_log_progress, ts_log_progress, NULL, ThreadInit, ThreadDeinit);
ThreadDeinit, ThreadExitPrintStats);
} }
/** /**
@ -386,26 +367,20 @@ void OutputRegisterTxSubModuleWithProgress(LoggerId id, const char *parent_name,
* *
* \retval Returns 0 on success, -1 on failure. * \retval Returns 0 on success, -1 on failure.
*/ */
void OutputRegisterTxModule(LoggerId id, const char *name, void OutputRegisterTxModule(LoggerId id, const char *name, const char *conf_name,
const char *conf_name, OutputInitFunc InitFunc, AppProto alproto, OutputInitFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, ThreadInitFunc ThreadInit,
TxLogger TxLogFunc, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats)
{ {
OutputRegisterTxModuleWrapper(id, name, conf_name, InitFunc, alproto, OutputRegisterTxModuleWrapper(id, name, conf_name, InitFunc, alproto, TxLogFunc, -1, -1, NULL,
TxLogFunc, -1, -1, NULL, ThreadInit, ThreadDeinit, ThreadInit, ThreadDeinit);
ThreadExitPrintStats);
} }
void OutputRegisterTxSubModule(LoggerId id, const char *parent_name, void OutputRegisterTxSubModule(LoggerId id, const char *parent_name, const char *name,
const char *name, const char *conf_name, const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats)
{ {
OutputRegisterTxSubModuleWrapper(id, parent_name, name, conf_name, OutputRegisterTxSubModuleWrapper(id, parent_name, name, conf_name, InitFunc, alproto, TxLogFunc,
InitFunc, alproto, TxLogFunc, -1, -1, NULL, ThreadInit, ThreadDeinit, -1, -1, NULL, ThreadInit, ThreadDeinit);
ThreadExitPrintStats);
} }
/** /**
@ -1033,7 +1008,7 @@ void OutputRegisterLoggers(void)
JsonHttpLogRegister(); JsonHttpLogRegister();
OutputRegisterTxSubModuleWithProgress(LOGGER_JSON_TX, "eve-log", "LogHttp2Log", "eve-log.http2", OutputRegisterTxSubModuleWithProgress(LOGGER_JSON_TX, "eve-log", "LogHttp2Log", "eve-log.http2",
OutputJsonLogInitSub, ALPROTO_HTTP2, JsonGenericDirFlowLogger, HTTP2StateClosed, OutputJsonLogInitSub, ALPROTO_HTTP2, JsonGenericDirFlowLogger, HTTP2StateClosed,
HTTP2StateClosed, JsonLogThreadInit, JsonLogThreadDeinit, NULL); HTTP2StateClosed, JsonLogThreadInit, JsonLogThreadDeinit);
/* tls log */ /* tls log */
LogTlsLogRegister(); LogTlsLogRegister();
JsonTlsLogRegister(); JsonTlsLogRegister();
@ -1041,7 +1016,7 @@ void OutputRegisterLoggers(void)
/* ssh */ /* ssh */
OutputRegisterTxSubModuleWithCondition(LOGGER_JSON_TX, "eve-log", "JsonSshLog", "eve-log.ssh", OutputRegisterTxSubModuleWithCondition(LOGGER_JSON_TX, "eve-log", "JsonSshLog", "eve-log.ssh",
OutputJsonLogInitSub, ALPROTO_SSH, JsonGenericDirFlowLogger, SSHTxLogCondition, OutputJsonLogInitSub, ALPROTO_SSH, JsonGenericDirFlowLogger, SSHTxLogCondition,
JsonLogThreadInit, JsonLogThreadDeinit, NULL); JsonLogThreadInit, JsonLogThreadDeinit);
/* pcap log */ /* pcap log */
PcapLogRegister(); PcapLogRegister();
/* file log */ /* file log */
@ -1052,7 +1027,7 @@ void OutputRegisterLoggers(void)
/* modbus */ /* modbus */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonModbusLog", "eve-log.modbus", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonModbusLog", "eve-log.modbus",
OutputJsonLogInitSub, ALPROTO_MODBUS, JsonGenericDirFlowLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_MODBUS, JsonGenericDirFlowLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("modbus json logger registered."); SCLogDebug("modbus json logger registered.");
/* tcp streaming data */ /* tcp streaming data */
@ -1077,16 +1052,16 @@ void OutputRegisterLoggers(void)
/* TFTP JSON logger. */ /* TFTP JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonTFTPLog", "eve-log.tftp", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonTFTPLog", "eve-log.tftp",
OutputJsonLogInitSub, ALPROTO_TFTP, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_TFTP, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("TFTP JSON logger registered."); SCLogDebug("TFTP JSON logger registered.");
/* FTP and FTP-DATA JSON loggers. */ /* FTP and FTP-DATA JSON loggers. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonFTPLog", "eve-log.ftp", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonFTPLog", "eve-log.ftp",
OutputJsonLogInitSub, ALPROTO_FTP, JsonGenericDirFlowLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_FTP, JsonGenericDirFlowLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonFTPLog", "eve-log.ftp", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonFTPLog", "eve-log.ftp",
OutputJsonLogInitSub, ALPROTO_FTPDATA, JsonGenericDirFlowLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_FTPDATA, JsonGenericDirFlowLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("FTP JSON logger registered."); SCLogDebug("FTP JSON logger registered.");
/* SMB JSON logger. */ /* SMB JSON logger. */
@ -1096,13 +1071,13 @@ void OutputRegisterLoggers(void)
/* KRB5 JSON logger. */ /* KRB5 JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonKRB5Log", "eve-log.krb5", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonKRB5Log", "eve-log.krb5",
OutputJsonLogInitSub, ALPROTO_KRB5, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_KRB5, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("KRB5 JSON logger registered."); SCLogDebug("KRB5 JSON logger registered.");
/* QUIC JSON logger. */ /* QUIC JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonQuicLog", "eve-log.quic", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonQuicLog", "eve-log.quic",
OutputJsonLogInitSub, ALPROTO_QUIC, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_QUIC, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("quic json logger registered."); SCLogDebug("quic json logger registered.");
/* DHCP JSON logger. */ /* DHCP JSON logger. */
@ -1110,19 +1085,19 @@ void OutputRegisterLoggers(void)
/* SNMP JSON logger. */ /* SNMP JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonSNMPLog", "eve-log.snmp", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonSNMPLog", "eve-log.snmp",
OutputJsonLogInitSub, ALPROTO_SNMP, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_SNMP, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("SNMP JSON logger registered."); SCLogDebug("SNMP JSON logger registered.");
/* SIP JSON logger. */ /* SIP JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonSIPLog", "eve-log.sip", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonSIPLog", "eve-log.sip",
OutputJsonLogInitSub, ALPROTO_SIP, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_SIP, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("SIP JSON logger registered."); SCLogDebug("SIP JSON logger registered.");
/* RFB JSON logger. */ /* RFB JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonRFBLog", "eve-log.rfb", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonRFBLog", "eve-log.rfb",
OutputJsonLogInitSub, ALPROTO_RFB, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_RFB, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
/* MQTT JSON logger. */ /* MQTT JSON logger. */
JsonMQTTLogRegister(); JsonMQTTLogRegister();
/* Pgsql JSON logger. */ /* Pgsql JSON logger. */
@ -1130,25 +1105,25 @@ void OutputRegisterLoggers(void)
/* WebSocket JSON logger. */ /* WebSocket JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonWebSocketLog", "eve-log.websocket", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonWebSocketLog", "eve-log.websocket",
OutputJsonLogInitSub, ALPROTO_WEBSOCKET, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_WEBSOCKET, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
/* Enip JSON logger. */ /* Enip JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonEnipLog", "eve-log.enip", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonEnipLog", "eve-log.enip",
OutputJsonLogInitSub, ALPROTO_ENIP, JsonGenericDirFlowLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_ENIP, JsonGenericDirFlowLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
/* Ldap JSON logger. */ /* Ldap JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonLdapLog", "eve-log.ldap", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonLdapLog", "eve-log.ldap",
OutputJsonLogInitSub, ALPROTO_LDAP, JsonGenericDirFlowLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_LDAP, JsonGenericDirFlowLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
/* DoH2 JSON logger. */ /* DoH2 JSON logger. */
JsonDoh2LogRegister(); JsonDoh2LogRegister();
/* Template JSON logger. */ /* Template JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonTemplateLog", "eve-log.template", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonTemplateLog", "eve-log.template",
OutputJsonLogInitSub, ALPROTO_TEMPLATE, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_TEMPLATE, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
/* RDP JSON logger. */ /* RDP JSON logger. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonRdpLog", "eve-log.rdp", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonRdpLog", "eve-log.rdp",
OutputJsonLogInitSub, ALPROTO_RDP, JsonGenericDirPacketLogger, JsonLogThreadInit, OutputJsonLogInitSub, ALPROTO_RDP, JsonGenericDirPacketLogger, JsonLogThreadInit,
JsonLogThreadDeinit, NULL); JsonLogThreadDeinit);
SCLogDebug("rdp json logger registered."); SCLogDebug("rdp json logger registered.");
/* DCERPC JSON logger. */ /* DCERPC JSON logger. */
JsonDCERPCLogRegister(); JsonDCERPCLogRegister();
@ -1159,7 +1134,7 @@ void OutputRegisterLoggers(void)
/* Register as an eve sub-module. */ /* Register as an eve sub-module. */
OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonBitTorrentDHTLog", OutputRegisterTxSubModule(LOGGER_JSON_TX, "eve-log", "JsonBitTorrentDHTLog",
"eve-log.bittorrent-dht", OutputJsonLogInitSub, ALPROTO_BITTORRENT_DHT, "eve-log.bittorrent-dht", OutputJsonLogInitSub, ALPROTO_BITTORRENT_DHT,
JsonGenericDirPacketLogger, JsonLogThreadInit, JsonLogThreadDeinit, NULL); JsonGenericDirPacketLogger, JsonLogThreadInit, JsonLogThreadDeinit);
} }
/* ARP JSON logger */ /* ARP JSON logger */
JsonArpLogRegister(); JsonArpLogRegister();

@ -94,40 +94,27 @@ void OutputRegisterPacketSubModule(LoggerId id, const char *parent_name, const c
const char *conf_name, OutputInitSubFunc InitFunc, PacketLogger LogFunc, const char *conf_name, OutputInitSubFunc InitFunc, PacketLogger LogFunc,
PacketLogCondition ConditionFunc, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit); PacketLogCondition ConditionFunc, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit);
void OutputRegisterTxModule(LoggerId id, const char *name, void OutputRegisterTxModule(LoggerId id, const char *name, const char *conf_name,
const char *conf_name, OutputInitFunc InitFunc, AppProto alproto, OutputInitFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, ThreadInitFunc ThreadInit,
TxLogger TxLogFunc, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit);
ThreadDeinitFunc ThreadDeinit, void OutputRegisterTxSubModule(LoggerId id, const char *parent_name, const char *name,
ThreadExitPrintStatsFunc ThreadExitPrintStats); const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
void OutputRegisterTxSubModule(LoggerId id, const char *parent_name, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit);
const char *name, const char *conf_name,
OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats);
void OutputRegisterTxModuleWithCondition(LoggerId id, const char *name,
const char *conf_name, OutputInitFunc InitFunc, AppProto alproto,
TxLogger TxLogFunc, TxLoggerCondition TxLogCondition,
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats);
void OutputRegisterTxSubModuleWithCondition(LoggerId id,
const char *parent_name, const char *name, const char *conf_name,
OutputInitSubFunc InitFunc, AppProto alproto,
TxLogger TxLogFunc, TxLoggerCondition TxLogCondition,
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
ThreadExitPrintStatsFunc ThreadExitPrintStats);
void OutputRegisterTxModuleWithProgress(LoggerId id, const char *name, void OutputRegisterTxModuleWithCondition(LoggerId id, const char *name, const char *conf_name,
const char *conf_name, OutputInitFunc InitFunc, AppProto alproto, OutputInitFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
TxLogger TxLogFunc, int tc_log_progress, int ts_log_progress, TxLoggerCondition TxLogCondition, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit);
ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, void OutputRegisterTxSubModuleWithCondition(LoggerId id, const char *parent_name, const char *name,
ThreadExitPrintStatsFunc ThreadExitPrintStats); const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
void OutputRegisterTxSubModuleWithProgress(LoggerId id, const char *parent_name, TxLoggerCondition TxLogCondition, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit);
const char *name, const char *conf_name,
OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, void OutputRegisterTxModuleWithProgress(LoggerId id, const char *name, const char *conf_name,
OutputInitFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, int tc_log_progress,
int ts_log_progress, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit);
void OutputRegisterTxSubModuleWithProgress(LoggerId id, const char *parent_name, const char *name,
const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc,
int tc_log_progress, int ts_log_progress, ThreadInitFunc ThreadInit, int tc_log_progress, int ts_log_progress, ThreadInitFunc ThreadInit,
ThreadDeinitFunc ThreadDeinit, ThreadDeinitFunc ThreadDeinit);
ThreadExitPrintStatsFunc ThreadExitPrintStats);
void OutputRegisterFileSubModule(LoggerId id, const char *parent_name, void OutputRegisterFileSubModule(LoggerId id, const char *parent_name,
const char *name, const char *conf_name, const char *name, const char *conf_name,

@ -622,11 +622,9 @@ static void SetupOutput(
module->PacketConditionFunc, output_ctx, module->ThreadInit, module->ThreadDeinit); module->PacketConditionFunc, output_ctx, module->ThreadInit, module->ThreadDeinit);
} else if (module->TxLogFunc) { } else if (module->TxLogFunc) {
SCLogDebug("%s is a tx logger", module->name); SCLogDebug("%s is a tx logger", module->name);
OutputRegisterTxLogger(module->logger_id, module->name, module->alproto, OutputRegisterTxLogger(module->logger_id, module->name, module->alproto, module->TxLogFunc,
module->TxLogFunc, output_ctx, module->tc_log_progress, output_ctx, module->tc_log_progress, module->ts_log_progress,
module->ts_log_progress, module->TxLogCondition, module->TxLogCondition, module->ThreadInit, module->ThreadDeinit);
module->ThreadInit, module->ThreadDeinit,
module->ThreadExitPrintStats);
/* Not used with wild card loggers */ /* Not used with wild card loggers */
if (module->alproto != ALPROTO_UNKNOWN) { if (module->alproto != ALPROTO_UNKNOWN) {
logger_bits[module->alproto] |= BIT_U32(module->logger_id); logger_bits[module->alproto] |= BIT_U32(module->logger_id);

Loading…
Cancel
Save