suricata
|
#include "decode.h"
Go to the source code of this file.
Typedefs | |
typedef int(* | FlowLogger) (ThreadVars *, void *thread_data, Flow *f) |
Functions | |
int | OutputRegisterFlowLogger (const char *name, FlowLogger LogFunc, OutputCtx *, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats) |
void | OutputFlowShutdown (void) |
TmEcode | OutputFlowLog (ThreadVars *tv, void *thread_data, Flow *f) |
Run flow logger(s) More... | |
TmEcode | OutputFlowLogThreadInit (ThreadVars *tv, void *initdata, void **data) |
thread init for the flow logger This will run the thread init functions for the individual registered loggers More... | |
TmEcode | OutputFlowLogThreadDeinit (ThreadVars *tv, void *thread_data) |
void | OutputFlowLogExitPrintStats (ThreadVars *tv, void *thread_data) |
Flow Logger Output registration functions
Definition in file output-flow.h.
typedef int(* FlowLogger) (ThreadVars *, void *thread_data, Flow *f) |
flow logger function pointer type
Definition at line 32 of file output-flow.h.
TmEcode OutputFlowLog | ( | ThreadVars * | tv, |
void * | thread_data, | ||
Flow * | f | ||
) |
Run flow logger(s)
Definition at line 90 of file output-flow.c.
References BUG_ON, OutputFlowLogger_::LogFunc, OutputLoggerThreadStore_::next, OutputFlowLogger_::next, SCLogDebug, OutputLoggerThreadData_::store, OutputLoggerThreadStore_::thread_data, and TM_ECODE_OK.
Referenced by FlowGetFlowFromHash().
void OutputFlowLogExitPrintStats | ( | ThreadVars * | tv, |
void * | thread_data | ||
) |
Definition at line 191 of file output-flow.c.
References OutputLoggerThreadStore_::next, OutputFlowLogger_::next, OutputLoggerThreadData_::store, OutputLoggerThreadStore_::thread_data, and OutputFlowLogger_::ThreadExitPrintStats.
TmEcode OutputFlowLogThreadDeinit | ( | ThreadVars * | tv, |
void * | thread_data | ||
) |
Definition at line 170 of file output-flow.c.
References OutputLoggerThreadStore_::next, OutputFlowLogger_::next, SCFree, OutputLoggerThreadData_::store, OutputLoggerThreadStore_::thread_data, OutputFlowLogger_::ThreadDeinit, and TM_ECODE_OK.
Referenced by DecodeThreadVarsFree().
TmEcode OutputFlowLogThreadInit | ( | ThreadVars * | tv, |
void * | initdata, | ||
void ** | data | ||
) |
thread init for the flow logger This will run the thread init functions for the individual registered loggers
Definition at line 128 of file output-flow.c.
References BUG_ON, OutputFlowLogger_::name, OutputLoggerThreadStore_::next, OutputFlowLogger_::next, OutputFlowLogger_::output_ctx, SCLogDebug, SCMalloc, OutputLoggerThreadData_::store, OutputLoggerThreadStore_::thread_data, OutputFlowLogger_::ThreadInit, TM_ECODE_FAILED, TM_ECODE_OK, and ts.
Referenced by DecodeThreadVarsAlloc().
void OutputFlowShutdown | ( | void | ) |
Definition at line 207 of file output-flow.c.
References OutputFlowLogger_::next, and SCFree.
Referenced by RunModeShutDown().
int OutputRegisterFlowLogger | ( | const char * | name, |
FlowLogger | LogFunc, | ||
OutputCtx * | , | ||
ThreadInitFunc | ThreadInit, | ||
ThreadDeinitFunc | ThreadDeinit, | ||
ThreadExitPrintStatsFunc | ThreadExitPrintStats | ||
) |
packet logger condition function pointer type, must return true for packets that should be logged
Definition at line 57 of file output-flow.c.
References OutputFlowLogger_::LogFunc, OutputFlowLogger_::name, OutputFlowLogger_::next, OutputFlowLogger_::output_ctx, SCLogDebug, SCMalloc, OutputFlowLogger_::ThreadDeinit, OutputFlowLogger_::ThreadExitPrintStats, and OutputFlowLogger_::ThreadInit.
Referenced by RunModeShutDown().