suricata
output-tx.c File Reference
#include "suricata-common.h"
#include "output.h"
#include "output-tx.h"
#include "stream.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "util-profiling.h"
#include "util-validate.h"
Include dependency graph for output-tx.c:

Go to the source code of this file.

Data Structures

struct  OutputTxLoggerThreadData_
 
struct  OutputTxLogger_
 
struct  Ctx
 

Typedefs

typedef struct OutputTxLoggerThreadData_ OutputTxLoggerThreadData
 
typedef struct OutputTxLogger_ OutputTxLogger
 

Functions

int SCOutputRegisterTxLogger (LoggerId id, const char *name, AppProto alproto, TxLogger LogFunc, void *initdata, int tc_log_progress, int ts_log_progress, TxLoggerCondition LogCondition, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
 Register a transaction logger. More...
 
void OutputTxLoggerRegister (void)
 
void OutputTxShutdown (void)
 

Variables

bool g_file_logger_enabled
 
bool g_filedata_logger_enabled
 

Detailed Description

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

AppLayer TX Logger Output registration functions

Definition in file output-tx.c.

Typedef Documentation

◆ OutputTxLogger

◆ OutputTxLoggerThreadData

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

Function Documentation

◆ OutputTxLoggerRegister()

void OutputTxLoggerRegister ( void  )

Internal function: private API.

Definition at line 650 of file output-tx.c.

References BUG_ON.

◆ OutputTxShutdown()

void OutputTxShutdown ( void  )

Internal function: private API.

Definition at line 661 of file output-tx.c.

Referenced by GlobalsDestroy().

Here is the caller graph for this function:

◆ SCOutputRegisterTxLogger()

int SCOutputRegisterTxLogger ( LoggerId  id,
const char *  name,
AppProto  alproto,
TxLogger  LogFunc,
void *  ,
int  tc_log_progress,
int  ts_log_progress,
TxLoggerCondition  LogCondition,
ThreadInitFunc  ,
ThreadDeinitFunc   
)

Register a transaction logger.

Parameters
logger_idAn ID used to distinguish this logger from others while profiling. For transaction logging this is only used for some internal state tracking.
nameAn informational name for this logger. Used for debugging.
alprotoThe application layer protocol this logger is for, for example ALPROTO_DNS.
LogFuncA pointer to the logging function.
initdataInitialization data that will be provided to the ThreadInit callback.
tc_log_progressThe to_client progress state required for the log function to be called.
ts_log_progressThe to_server progress state required for the log function to be called.
LogConditionA pointer to a function that will be called before the log function to test if the log function should be called.
ThreadInitFuncCallback a thread initialization function, initdata will be provided.
ThreadDeinitFuncCallback to a thread de-initialization function for cleanup.

Definition at line 65 of file output-tx.c.

Variable Documentation

◆ g_file_logger_enabled

bool g_file_logger_enabled

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

◆ g_filedata_logger_enabled

bool g_filedata_logger_enabled

Definition at line 37 of file output-filedata.c.