suricata
|
#include "suricata-common.h"
#include "tm-modules.h"
#include "output.h"
#include "output-packet.h"
#include "util-profiling.h"
Go to the source code of this file.
Data Structures | |
struct | OutputLoggerThreadStore_ |
struct | OutputLoggerThreadData_ |
struct | OutputPacketLogger_ |
Typedefs | |
typedef struct OutputLoggerThreadStore_ | OutputLoggerThreadStore |
typedef struct OutputLoggerThreadData_ | OutputLoggerThreadData |
typedef struct OutputPacketLogger_ | OutputPacketLogger |
Functions | |
int | OutputRegisterPacketLogger (LoggerId logger_id, const char *name, PacketLogger LogFunc, PacketLogCondition ConditionFunc, OutputCtx *output_ctx, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats) |
void | OutputPacketLoggerRegister (void) |
void | OutputPacketShutdown (void) |
Packet Logger Output registration functions
Definition in file output-packet.c.
typedef struct OutputLoggerThreadData_ OutputLoggerThreadData |
per thread data for this module, contains a list of per thread data for the packet loggers.
typedef struct OutputLoggerThreadStore_ OutputLoggerThreadStore |
typedef struct OutputPacketLogger_ OutputPacketLogger |
void OutputPacketLoggerRegister | ( | void | ) |
Definition at line 212 of file output-packet.c.
References OutputRegisterRootLogger().
Referenced by OutputRegisterRootLoggers().
void OutputPacketShutdown | ( | void | ) |
Definition at line 219 of file output-packet.c.
References OutputPacketLogger_::next, and SCFree.
Referenced by RunModeShutDown().
int OutputRegisterPacketLogger | ( | LoggerId | logger_id, |
const char * | name, | ||
PacketLogger | LogFunc, | ||
PacketLogCondition | ConditionFunc, | ||
OutputCtx * | output_ctx, | ||
ThreadInitFunc | ThreadInit, | ||
ThreadDeinitFunc | ThreadDeinit, | ||
ThreadExitPrintStatsFunc | ThreadExitPrintStats | ||
) |
Definition at line 60 of file output-packet.c.
References BUG_ON, OutputPacketLogger_::ConditionFunc, OutputPacketLogger_::LogFunc, OutputPacketLogger_::logger_id, OutputPacketLogger_::name, OutputLoggerThreadStore_::next, OutputPacketLogger_::next, OutputPacketLogger_::output_ctx, PACKET_PROFILING_LOGGER_END, PACKET_PROFILING_LOGGER_START, SCFree, SCLogDebug, SCMalloc, OutputLoggerThreadData_::store, OutputLoggerThreadStore_::thread_data, OutputPacketLogger_::ThreadDeinit, OutputPacketLogger_::ThreadExitPrintStats, OutputPacketLogger_::ThreadInit, TM_ECODE_FAILED, TM_ECODE_OK, TRUE, and ts.
Referenced by RunModeShutDown().