suricata
|
#include "suricata-common.h"
#include "output.h"
#include "output-file.h"
#include "app-layer-parser.h"
#include "detect-filemagic.h"
#include "util-file.h"
#include "util-magic.h"
#include "util-profiling.h"
#include "util-validate.h"
Go to the source code of this file.
Data Structures | |
struct | OutputFileLogger_ |
Typedefs | |
typedef struct OutputFileLogger_ | OutputFileLogger |
Functions | |
int | OutputRegisterFileLogger (LoggerId id, const char *name, FileLogger LogFunc, OutputCtx *output_ctx, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats) |
void | OutputFileLogFfc (ThreadVars *tv, OutputFileLoggerThreadData *op_thread_data, Packet *p, FileContainer *ffc, void *txv, const uint64_t tx_id, AppLayerTxData *txd, const bool file_close, const bool file_trunc, uint8_t dir) |
TmEcode | OutputFileLogThreadInit (ThreadVars *tv, OutputFileLoggerThreadData **data) |
thread init for the file logger This will run the thread init functions for the individual registered loggers More... | |
TmEcode | OutputFileLogThreadDeinit (ThreadVars *tv, OutputFileLoggerThreadData *op_thread_data) |
void | OutputFileLoggerRegister (void) |
void | OutputFileShutdown (void) |
Variables | |
bool | g_file_logger_enabled = false |
AppLayer File Logger Output registration functions
Definition in file output-file.c.
typedef struct OutputFileLogger_ OutputFileLogger |
void OutputFileLogFfc | ( | ThreadVars * | tv, |
OutputFileLoggerThreadData * | op_thread_data, | ||
Packet * | p, | ||
FileContainer * | ffc, | ||
void * | txv, | ||
const uint64_t | tx_id, | ||
AppLayerTxData * | txd, | ||
const bool | file_close, | ||
const bool | file_trunc, | ||
uint8_t | dir | ||
) |
Definition at line 100 of file output-file.c.
References FILE_LOGGED, FILE_STATE_CLOSED, FILE_STATE_OPENED, FILE_STATE_TRUNCATED, FileApplyTxFlags(), FileForceMagic(), File_::flags, FileContainer_::head, File_::next, SCLogDebug, and File_::state.
void OutputFileLoggerRegister | ( | void | ) |
Definition at line 239 of file output-file.c.
Referenced by OutputRegisterRootLoggers().
TmEcode OutputFileLogThreadDeinit | ( | ThreadVars * | tv, |
OutputFileLoggerThreadData * | op_thread_data | ||
) |
Definition at line 215 of file output-file.c.
References OutputFileLoggerThreadData_::store.
TmEcode OutputFileLogThreadInit | ( | ThreadVars * | tv, |
OutputFileLoggerThreadData ** | data | ||
) |
thread init for the file logger This will run the thread init functions for the individual registered loggers
Definition at line 168 of file output-file.c.
References SCCalloc, SCFree, SCLogDebug, and TM_ECODE_FAILED.
void OutputFileShutdown | ( | void | ) |
Definition at line 243 of file output-file.c.
int OutputRegisterFileLogger | ( | LoggerId | id, |
const char * | name, | ||
FileLogger | LogFunc, | ||
OutputCtx * | output_ctx, | ||
ThreadInitFunc | ThreadInit, | ||
ThreadDeinitFunc | ThreadDeinit, | ||
ThreadExitPrintStatsFunc | ThreadExitPrintStats | ||
) |
Definition at line 57 of file output-file.c.
References OutputFileLogger_::LogFunc, OutputFileLogger_::logger_id, OutputFileLogger_::name, OutputFileLogger_::output_ctx, SCCalloc, OutputFileLogger_::ThreadDeinit, OutputFileLogger_::ThreadExitPrintStats, and OutputFileLogger_::ThreadInit.
bool g_file_logger_enabled = false |
Definition at line 39 of file output-file.c.