suricata
output-tx.c File Reference
#include "suricata-common.h"
#include "tm-modules.h"
#include "output.h"
#include "output-tx.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  OutputLoggerThreadStore_
 
struct  OutputLoggerThreadData_
 
struct  OutputTxLogger_
 

Typedefs

typedef struct OutputLoggerThreadStore_ OutputLoggerThreadStore
 
typedef struct OutputLoggerThreadData_ OutputLoggerThreadData
 
typedef struct OutputTxLogger_ OutputTxLogger
 

Functions

int OutputRegisterTxLogger (LoggerId id, const char *name, AppProto alproto, TxLogger LogFunc, OutputCtx *output_ctx, int tc_log_progress, int ts_log_progress, TxLoggerCondition LogCondition, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, void(*ThreadExitPrintStats)(ThreadVars *, void *))
 
void OutputTxLoggerRegister (void)
 
void OutputTxShutdown (void)
 

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

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

Function Documentation

int OutputRegisterTxLogger ( LoggerId  id,
const char *  name,
AppProto  alproto,
TxLogger  LogFunc,
OutputCtx output_ctx,
int  tc_log_progress,
int  ts_log_progress,
TxLoggerCondition  LogCondition,
ThreadInitFunc  ThreadInit,
ThreadDeinitFunc  ThreadDeinit,
void(*)(ThreadVars *, void *)  ThreadExitPrintStats 
)

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

References Flow_::alparser, OutputTxLogger_::alproto, Flow_::alproto, ALPROTO_UNKNOWN, Flow_::alstate, APP_LAYER_PARSER_EOF, AppLayerGetTxIterator(), AppLayerParserGetStateProgress(), AppLayerParserGetStateProgressCompletionStatus(), AppLayerParserGetTransactionLogId(), AppLayerParserGetTxCnt(), AppLayerParserGetTxLogged(), AppLayerParserIsTxAware(), AppLayerParserProtocolGetLoggerBits(), AppLayerParserProtocolHasLogger(), AppLayerParserSetTransactionLogId(), AppLayerParserSetTxLogged(), AppLayerParserStateIssetFlag(), AppProtoToString(), BUG_ON, DEBUG_VALIDATE_BUG_ON, FALSE, Packet_::flow, FlowGetDisruptionFlags(), AppLayerGetTxIterTuple::has_next, OutputTxLogger_::id, OutputTxLogger_::LogCondition, OutputTxLogger_::LogFunc, logged, OutputTxLogger_::logger_id, OutputTxLogger_::name, OutputLoggerThreadStore_::next, OutputTxLogger_::next, OutputTxLogger_::output_ctx, PACKET_PROFILING_LOGGER_END, PACKET_PROFILING_LOGGER_START, Flow_::proto, Packet_::proto, SC_ERR_FATAL, SCFree, SCLogDebug, SCLogError, SCLogNotice, SCMalloc, OutputLoggerThreadData_::store, STREAM_TOCLIENT, STREAM_TOSERVER, OutputTxLogger_::tc_log_progress, OutputLoggerThreadStore_::thread_data, OutputTxLogger_::ThreadDeinit, OutputTxLogger_::ThreadExitPrintStats, OutputTxLogger_::ThreadInit, TM_ECODE_FAILED, TM_ECODE_OK, ts, OutputTxLogger_::ts_log_progress, AppLayerGetTxIterTuple::tx_id, tx_id, and AppLayerGetTxIterTuple::tx_ptr.

Referenced by RunModeShutDown().

Here is the call graph for this function:

Here is the caller graph for this function:

void OutputTxLoggerRegister ( void  )

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

References OutputRegisterRootLogger().

Referenced by OutputRegisterRootLoggers().

Here is the call graph for this function:

Here is the caller graph for this function:

void OutputTxShutdown ( void  )

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

References OutputTxLogger_::next, and SCFree.

Referenced by RunModeShutDown().

Here is the caller graph for this function: