suricata
output-file.c File Reference
#include "suricata-common.h"
#include "tm-modules.h"
#include "output.h"
#include "output-file.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "detect-filemagic.h"
#include "util-profiling.h"
#include "util-validate.h"
Include dependency graph for output-file.c:

Go to the source code of this file.

Data Structures

struct  OutputLoggerThreadStore_
 
struct  OutputLoggerThreadData_
 
struct  OutputFileLogger_
 

Typedefs

typedef struct OutputLoggerThreadStore_ OutputLoggerThreadStore
 
typedef struct OutputLoggerThreadData_ OutputLoggerThreadData
 
typedef struct OutputFileLogger_ OutputFileLogger
 

Functions

int OutputRegisterFileLogger (LoggerId id, const char *name, FileLogger LogFunc, OutputCtx *output_ctx, 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.c.

Typedef Documentation

◆ OutputFileLogger

◆ OutputLoggerThreadData

per thread data for this module, contains a list of per thread data for the packet loggers.

◆ OutputLoggerThreadStore

Function Documentation

◆ OutputFileLoggerRegister()

void OutputFileLoggerRegister ( void  )

Definition at line 273 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 280 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 63 of file output-file.c.

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