suricata
|
#include "suricata-common.h"
#include "output.h"
#include "output-flow.h"
#include "util-profiling.h"
#include "util-validate.h"
Go to the source code of this file.
Data Structures | |
struct | OutputFlowLoggerThreadData_ |
struct | OutputFlowLogger_ |
Typedefs | |
typedef struct OutputFlowLoggerThreadData_ | OutputFlowLoggerThreadData |
typedef struct OutputFlowLogger_ | OutputFlowLogger |
Functions | |
int | OutputRegisterFlowLogger (const char *name, FlowLogger LogFunc, OutputCtx *output_ctx, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats) |
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) |
void | OutputFlowShutdown (void) |
Flow Logger Output registration functions
Definition in file output-flow.c.
typedef struct OutputFlowLogger_ OutputFlowLogger |
typedef struct OutputFlowLoggerThreadData_ OutputFlowLoggerThreadData |
per thread data for this module, contains a list of per thread data for the packet loggers.
TmEcode OutputFlowLog | ( | ThreadVars * | tv, |
void * | thread_data, | ||
Flow * | f | ||
) |
Run flow logger(s)
Definition at line 86 of file output-flow.c.
References DEBUG_VALIDATE_BUG_ON.
void OutputFlowLogExitPrintStats | ( | ThreadVars * | tv, |
void * | thread_data | ||
) |
Definition at line 190 of file output-flow.c.
References OutputFlowLoggerThreadData_::store.
TmEcode OutputFlowLogThreadDeinit | ( | ThreadVars * | tv, |
void * | thread_data | ||
) |
Definition at line 166 of file output-flow.c.
References OutputFlowLoggerThreadData_::store, 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 124 of file output-flow.c.
References SCLogDebug, SCMalloc, and TM_ECODE_FAILED.
Referenced by DecodeThreadVarsAlloc().
void OutputFlowShutdown | ( | void | ) |
Definition at line 206 of file output-flow.c.
int OutputRegisterFlowLogger | ( | const char * | name, |
FlowLogger | LogFunc, | ||
OutputCtx * | output_ctx, | ||
ThreadInitFunc | ThreadInit, | ||
ThreadDeinitFunc | ThreadDeinit, | ||
ThreadExitPrintStatsFunc | ThreadExitPrintStats | ||
) |
Definition at line 53 of file output-flow.c.
References OutputFlowLogger_::LogFunc, OutputFlowLogger_::name, OutputFlowLogger_::output_ctx, SCMalloc, OutputFlowLogger_::ThreadDeinit, OutputFlowLogger_::ThreadExitPrintStats, and OutputFlowLogger_::ThreadInit.