suricata
|
Go to the source code of this file.
Typedefs | |
typedef int(* | PacketLogger) (ThreadVars *, void *thread_data, const Packet *) |
typedef int(* | PacketLogCondition) (ThreadVars *, void *thread_data, const Packet *) |
Functions | |
int | OutputRegisterPacketLogger (LoggerId logger_id, const char *name, PacketLogger LogFunc, PacketLogCondition ConditionFunc, OutputCtx *, ThreadInitFunc, ThreadDeinitFunc, ThreadExitPrintStatsFunc) |
void | OutputPacketLoggerRegister (void) |
void | OutputPacketShutdown (void) |
Packet Logger Output registration functions
Definition in file output-packet.h.
typedef int(* PacketLogCondition) (ThreadVars *, void *thread_data, const Packet *) |
packet logger condition function pointer type, must return true for packets that should be logged
Definition at line 35 of file output-packet.h.
typedef int(* PacketLogger) (ThreadVars *, void *thread_data, const Packet *) |
packet logger function pointer type
Definition at line 30 of file output-packet.h.
void OutputPacketLoggerRegister | ( | void | ) |
Definition at line 216 of file output-packet.c.
References OutputRegisterRootLogger().
Referenced by OutputRegisterRootLoggers().
void OutputPacketShutdown | ( | void | ) |
Definition at line 223 of file output-packet.c.
int OutputRegisterPacketLogger | ( | LoggerId | logger_id, |
const char * | name, | ||
PacketLogger | LogFunc, | ||
PacketLogCondition | ConditionFunc, | ||
OutputCtx * | , | ||
ThreadInitFunc | , | ||
ThreadDeinitFunc | , | ||
ThreadExitPrintStatsFunc | |||
) |
Definition at line 55 of file output-packet.c.
References OutputPacketLogger_::ConditionFunc, OutputPacketLogger_::LogFunc, OutputPacketLogger_::logger_id, OutputPacketLogger_::name, OutputPacketLogger_::output_ctx, SCMalloc, OutputPacketLogger_::ThreadDeinit, OutputPacketLogger_::ThreadExitPrintStats, and OutputPacketLogger_::ThreadInit.