suricata
|
Go to the source code of this file.
Typedefs | |
typedef int(* | TxLogger) (ThreadVars *, void *thread_data, const Packet *, Flow *f, void *state, void *tx, uint64_t tx_id) |
typedef int(* | TxLoggerCondition) (ThreadVars *, const Packet *, void *state, void *tx, uint64_t tx_id) |
Functions | |
int | OutputRegisterTxLogger (LoggerId id, const char *name, AppProto alproto, TxLogger LogFunc, OutputCtx *, int tc_log_progress, int ts_log_progress, TxLoggerCondition LogCondition, ThreadInitFunc, ThreadDeinitFunc, void(*ThreadExitPrintStats)(ThreadVars *, void *)) |
void | OutputTxLoggerRegister (void) |
void | OutputTxShutdown (void) |
AppLayer TX Logger Output registration functions
Definition in file output-tx.h.
typedef int(* TxLogger) (ThreadVars *, void *thread_data, const Packet *, Flow *f, void *state, void *tx, uint64_t tx_id) |
tx logger function pointer type
Definition at line 33 of file output-tx.h.
typedef int(* TxLoggerCondition) (ThreadVars *, const Packet *, void *state, void *tx, uint64_t tx_id) |
tx logger condition function pointer type, must return true for tx that should be logged
Definition at line 38 of file output-tx.h.
int OutputRegisterTxLogger | ( | LoggerId | id, |
const char * | name, | ||
AppProto | alproto, | ||
TxLogger | LogFunc, | ||
OutputCtx * | , | ||
int | tc_log_progress, | ||
int | ts_log_progress, | ||
TxLoggerCondition | LogCondition, | ||
ThreadInitFunc | , | ||
ThreadDeinitFunc | , | ||
void(*)(ThreadVars *, void *) | ThreadExitPrintStats | ||
) |
Definition at line 67 of file output-tx.c.
References OutputTxLogger_::alproto, ALPROTO_UNKNOWN, AppLayerParserGetStateProgressCompletionStatus(), AppLayerParserIsEnabled(), AppProtoToString(), OutputTxLogger_::id, OutputTxLogger_::LogCondition, OutputTxLogger_::LogFunc, OutputTxLogger_::logger_id, OutputTxLogger_::name, OutputTxLogger_::output_ctx, SCLogDebug, SCMalloc, OutputTxLogger_::tc_log_progress, OutputTxLogger_::ThreadDeinit, OutputTxLogger_::ThreadExitPrintStats, OutputTxLogger_::ThreadInit, and OutputTxLogger_::ts_log_progress.
void OutputTxLoggerRegister | ( | void | ) |
Definition at line 672 of file output-tx.c.
References OutputRegisterRootLogger().
Referenced by OutputRegisterRootLoggers().
void OutputTxShutdown | ( | void | ) |
Definition at line 678 of file output-tx.c.
References ALPROTO_MAX.