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

Go to the source code of this file.

Typedefs

typedef int(* TxLogger) (ThreadVars *, void *thread_data, const Packet *, Flow *f, void *state, void *tx, uint64_t tx_id)
 
typedef int(* TxLoggerCondition) (ThreadVars *, const Packet *, void *state, void *tx, uint64_t tx_id)
 

Functions

int OutputRegisterTxLogger (LoggerId id, const char *name, AppProto alproto, TxLogger LogFunc, OutputCtx *, int tc_log_progress, int ts_log_progress, TxLoggerCondition LogCondition, ThreadInitFunc, ThreadDeinitFunc, 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.h.

Typedef Documentation

typedef int(* TxLogger) (ThreadVars *, void *thread_data, const Packet *, Flow *f, void *state, void *tx, uint64_t tx_id)

packet logger function pointer type

Definition at line 32 of file output-tx.h.

typedef int(* TxLoggerCondition) (ThreadVars *, const Packet *, void *state, void *tx, uint64_t tx_id)

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

Definition at line 37 of file output-tx.h.

Function Documentation

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

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

References Flow_::alparser, OutputTxLogger_::alproto, Flow_::alproto, Flow_::alstate, APP_LAYER_PARSER_EOF, AppLayerGetTxIterator(), AppLayerParserGetStateProgress(), AppLayerParserGetStateProgressCompletionStatus(), AppLayerParserGetTransactionLogId(), AppLayerParserGetTxCnt(), AppLayerParserGetTxLogged(), AppLayerParserIsTxAware(), AppLayerParserProtocolGetLoggerBits(), AppLayerParserProtocolHasLogger(), AppLayerParserProtocolIsTxAware(), AppLayerParserSetTransactionLogId(), AppLayerParserSetTxLogged(), AppLayerParserStateIssetFlag(), AppProtoToString(), 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, tx_id, AppLayerGetTxIterTuple::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 368 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 374 of file output-tx.c.

References OutputTxLogger_::next, and SCFree.

Referenced by RunModeShutDown().

Here is the caller graph for this function: