|
suricata
|
#include "suricata-common.h"#include "output.h"#include "output-packet.h"#include "util-profiling.h"#include "util-validate.h"
Go to the source code of this file.
Data Structures | |
| struct | OutputPacketLoggerThreadData_ |
| struct | OutputPacketLogger_ |
Typedefs | |
| typedef struct OutputPacketLoggerThreadData_ | OutputPacketLoggerThreadData |
| typedef struct OutputPacketLogger_ | OutputPacketLogger |
Functions | |
| int | SCOutputRegisterPacketLogger (LoggerId logger_id, const char *name, PacketLogger LogFunc, PacketLogCondition ConditionFunc, void *initdata, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit) |
| Register a packet logger. More... | |
| void | OutputPacketLoggerRegister (void) |
| void | OutputPacketShutdown (void) |
Packet Logger Output registration functions
Definition in file output-packet.c.
| typedef struct OutputPacketLogger_ OutputPacketLogger |
| typedef struct OutputPacketLoggerThreadData_ OutputPacketLoggerThreadData |
per thread data for this module, contains a list of per thread data for the packet loggers.
| void OutputPacketLoggerRegister | ( | void | ) |
Internal function: private API.
Definition at line 194 of file output-packet.c.
References OutputRegisterRootLogger().

| void OutputPacketShutdown | ( | void | ) |
Internal function: private API.
Definition at line 200 of file output-packet.c.
| int SCOutputRegisterPacketLogger | ( | LoggerId | logger_id, |
| const char * | name, | ||
| PacketLogger | LogFunc, | ||
| PacketLogCondition | ConditionFunc, | ||
| void * | initdata, | ||
| ThreadInitFunc | , | ||
| ThreadDeinitFunc | |||
| ) |
Register a packet logger.
| logger_id | An ID used to distinguish this logger from others while profiling. |
| name | An informational name for this logger. Used only for debugging. |
| LogFunc | A function that will be called to log each packet that passes the condition test. |
| ConditionFunc | A function to test if the packet should be passed to the logging function. |
| initdata | Initialization data that will pass to the ThreadInitFunc. |
| ThreadInitFunc | Thread initialization function. |
| ThreadDeinitFunc | Thread de-initialization function. |
| 0 | on success, -1 on failure. |
Definition at line 55 of file output-packet.c.