suricata
output-file.h File Reference
#include "decode.h"
#include "util-file.h"
Include dependency graph for output-file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef int(* FileLogger) (ThreadVars *, void *thread_data, const Packet *, const File *, uint8_t direction)
 

Functions

int OutputRegisterFileLogger (LoggerId id, const char *name, FileLogger LogFunc, OutputCtx *, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats)
 
void OutputFileLoggerRegister (void)
 
void OutputFileShutdown (void)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

AppLayer File Logger Output registration functions

Definition in file output-file.h.

Typedef Documentation

◆ FileLogger

typedef int(* FileLogger) (ThreadVars *, void *thread_data, const Packet *, const File *, uint8_t direction)

packet logger function pointer type

Definition at line 33 of file output-file.h.

Function Documentation

◆ OutputFileLoggerRegister()

void OutputFileLoggerRegister ( void  )

Definition at line 289 of file output-file.c.

References OutputRegisterRootLogger().

Referenced by OutputRegisterRootLoggers().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OutputFileShutdown()

void OutputFileShutdown ( void  )

Definition at line 296 of file output-file.c.

◆ OutputRegisterFileLogger()

int OutputRegisterFileLogger ( LoggerId  id,
const char *  name,
FileLogger  LogFunc,
OutputCtx ,
ThreadInitFunc  ThreadInit,
ThreadDeinitFunc  ThreadDeinit,
ThreadExitPrintStatsFunc  ThreadExitPrintStats 
)

packet logger condition function pointer type, must return true for packets that should be logged

Definition at line 67 of file output-file.c.

References OutputFileLogger_::LogFunc, OutputFileLogger_::logger_id, OutputFileLogger_::name, OutputFileLogger_::output_ctx, SCMalloc, OutputFileLogger_::ThreadDeinit, OutputFileLogger_::ThreadExitPrintStats, and OutputFileLogger_::ThreadInit.