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 | SCOutputRegisterFlowLogger (const char *name, FlowLogger LogFunc, void *initdata, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit) |
Register a flow logger. More... | |
TmEcode | OutputFlowLog (ThreadVars *tv, void *thread_data, Flow *f) |
Run flow logger(s) More... | |
TmEcode | OutputFlowLogThreadInit (ThreadVars *tv, 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 | 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 87 of file output-flow.c.
References DEBUG_VALIDATE_BUG_ON.
TmEcode OutputFlowLogThreadDeinit | ( | ThreadVars * | tv, |
void * | thread_data | ||
) |
Internal function: private API.
Definition at line 163 of file output-flow.c.
References OutputFlowLoggerThreadData_::store, and TM_ECODE_OK.
Referenced by DecodeThreadVarsFree().
TmEcode OutputFlowLogThreadInit | ( | ThreadVars * | tv, |
void ** | data | ||
) |
thread init for the flow logger This will run the thread init functions for the individual registered loggers
Internal function: private API.
Definition at line 123 of file output-flow.c.
References SCCalloc, SCLogDebug, and TM_ECODE_FAILED.
Referenced by DecodeThreadVarsAlloc().
void OutputFlowShutdown | ( | void | ) |
Internal function: private API.
Definition at line 187 of file output-flow.c.
int SCOutputRegisterFlowLogger | ( | const char * | name, |
FlowLogger | LogFunc, | ||
void * | initdata, | ||
ThreadInitFunc | ThreadInit, | ||
ThreadDeinitFunc | ThreadDeinit | ||
) |
Register a flow logger.
name | An informational name for this logger. Used only for debugging. |
LogFunc | A function that will be called to log each flow. |
initdata | A pointer to initialization data that will be passed the ThreadInit. |
ThreadInit | Thread initialization callback. |
ThreadDeinit | Thread de-initialization callback. |
0 | on success, -1 on failure. |
Definition at line 58 of file output-flow.c.