suricata
|
Go to the source code of this file.
Data Structures | |
struct | OutputFiledataLoggerThreadData_ |
Macros | |
#define | OUTPUT_FILEDATA_FLAG_OPEN 0x01 |
#define | OUTPUT_FILEDATA_FLAG_CLOSE 0x02 |
Typedefs | |
typedef struct OutputFiledataLoggerThreadData_ | OutputFiledataLoggerThreadData |
typedef int(* | FiledataLogger) (ThreadVars *, void *thread_data, const Packet *, File *, void *tx, const uint64_t tx_id, const uint8_t *, uint32_t, uint8_t, uint8_t dir) |
Functions | |
TmEcode | OutputFiledataLogThreadInit (ThreadVars *tv, OutputFiledataLoggerThreadData **data) |
thread init for the filedata logger This will run the thread init functions for the individual registered loggers More... | |
TmEcode | OutputFiledataLogThreadDeinit (ThreadVars *tv, OutputFiledataLoggerThreadData *thread_data) |
void | OutputFiledataLogFfc (ThreadVars *tv, OutputFiledataLoggerThreadData *td, Packet *p, AppLayerGetFileState files, void *txv, const uint64_t tx_id, AppLayerTxData *txd, const uint8_t call_flags, const bool file_close, const bool file_trunc, const uint8_t dir) |
int | OutputRegisterFiledataLogger (LoggerId id, const char *name, FiledataLogger LogFunc, OutputCtx *, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats) |
void | OutputFiledataLoggerRegister (void) |
void | OutputFiledataShutdown (void) |
AppLayer Filedata Logger Output registration functions
Definition in file output-filedata.h.
#define OUTPUT_FILEDATA_FLAG_CLOSE 0x02 |
Definition at line 31 of file output-filedata.h.
#define OUTPUT_FILEDATA_FLAG_OPEN 0x01 |
Definition at line 30 of file output-filedata.h.
typedef int(* FiledataLogger) (ThreadVars *, void *thread_data, const Packet *, File *, void *tx, const uint64_t tx_id, const uint8_t *, uint32_t, uint8_t, uint8_t dir) |
filedata logger function pointer type
Definition at line 49 of file output-filedata.h.
typedef struct OutputFiledataLoggerThreadData_ OutputFiledataLoggerThreadData |
per thread data for this module, contains a list of per thread data for the packet loggers.
void OutputFiledataLogFfc | ( | ThreadVars * | tv, |
OutputFiledataLoggerThreadData * | td, | ||
Packet * | p, | ||
AppLayerGetFileState | files, | ||
void * | txv, | ||
const uint64_t | tx_id, | ||
AppLayerTxData * | txd, | ||
const uint8_t | call_flags, | ||
const bool | file_close, | ||
const bool | file_trunc, | ||
const uint8_t | dir | ||
) |
Definition at line 129 of file output-filedata.c.
References File_::content_stored, FILE_STATE_CLOSED, FILE_STORE, File_::file_store_id, FILE_STORED, FILE_TRUNCATED, FileApplyTxFlags(), FileCloseFilePtr(), FileDataSize(), FileForceMagic(), FilePrintFlags, File_::flags, File_::next, OUTPUT_FILEDATA_FLAG_CLOSE, OUTPUT_FILEDATA_FLAG_OPEN, SC_ATOMIC_ADD, SCLogDebug, File_::state, and OutputFiledataLoggerThreadData_::store.
void OutputFiledataLoggerRegister | ( | void | ) |
Definition at line 278 of file output-filedata.c.
References SC_ATOMIC_INIT, and SC_ATOMIC_SET.
Referenced by OutputRegisterRootLoggers().
TmEcode OutputFiledataLogThreadDeinit | ( | ThreadVars * | tv, |
OutputFiledataLoggerThreadData * | thread_data | ||
) |
Definition at line 253 of file output-filedata.c.
References OutputFiledataLoggerThreadData_::store.
TmEcode OutputFiledataLogThreadInit | ( | ThreadVars * | tv, |
OutputFiledataLoggerThreadData ** | data | ||
) |
thread init for the filedata logger This will run the thread init functions for the individual registered loggers
Definition at line 205 of file output-filedata.c.
References SCFree, SCLogDebug, SCMalloc, and TM_ECODE_FAILED.
void OutputFiledataShutdown | ( | void | ) |
Definition at line 284 of file output-filedata.c.
int OutputRegisterFiledataLogger | ( | LoggerId | id, |
const char * | name, | ||
FiledataLogger | LogFunc, | ||
OutputCtx * | , | ||
ThreadInitFunc | ThreadInit, | ||
ThreadDeinitFunc | ThreadDeinit, | ||
ThreadExitPrintStatsFunc | ThreadExitPrintStats | ||
) |
Definition at line 55 of file output-filedata.c.
References OutputFiledataLogger_::LogFunc, OutputFiledataLogger_::logger_id, OutputFiledataLogger_::name, OutputFiledataLogger_::output_ctx, SCMalloc, OutputFiledataLogger_::ThreadDeinit, OutputFiledataLogger_::ThreadExitPrintStats, and OutputFiledataLogger_::ThreadInit.