|
suricata
|


Go to the source code of this file.
Typedefs | |
| typedef int(* | PacketLogger) (ThreadVars *, void *thread_data, const Packet *) |
| Packet logger function pointer type. More... | |
| typedef bool(* | PacketLogCondition) (ThreadVars *, void *thread_data, const Packet *) |
| Packet logger condition function point type. More... | |
Functions | |
| int | SCOutputRegisterPacketLogger (LoggerId logger_id, const char *name, PacketLogger LogFunc, PacketLogCondition ConditionFunc, void *initdata, ThreadInitFunc, ThreadDeinitFunc) |
| Register a packet logger. More... | |
| void | OutputPacketLoggerRegister (void) |
| void | OutputPacketShutdown (void) |
Packet Logger Output registration functions
Definition in file output-packet.h.
| typedef bool(* PacketLogCondition) (ThreadVars *, void *thread_data, const Packet *) |
Packet logger condition function point type.
Must return true for the packet to be passed onto the packet logger.
Definition at line 43 of file output-packet.h.
| typedef int(* PacketLogger) (ThreadVars *, void *thread_data, const Packet *) |
Packet logger function pointer type.
Definition at line 35 of file output-packet.h.
| 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.