suricata
AppLayerParserProtoCtx_ Struct Reference

App layer protocol parser context. More...

Collaboration diagram for AppLayerParserProtoCtx_:

Data Fields

AppLayerParserFPtr Parser [2]
 
bool logger
 
uint8_t first_data_dir
 
uint32_t logger_bits
 
void *(* StateAlloc )(void *, AppProto)
 
void(* StateFree )(void *)
 
void(* StateTransactionFree )(void *, uint64_t)
 
void *(* LocalStorageAlloc )(void)
 
void(* LocalStorageFree )(void *)
 
AppLayerGetFileState(* GetTxFiles )(void *, uint8_t)
 
int(* StateGetProgress )(void *alstate, uint8_t direction)
 
uint64_t(* StateGetTxCnt )(void *alstate)
 
void *(* StateGetTx )(void *alstate, uint64_t tx_id)
 
AppLayerGetTxIteratorFunc StateGetTxIterator
 
int complete_ts
 
int complete_tc
 
int(* StateGetEventInfoById )(uint8_t event_id, const char **event_name, AppLayerEventType *event_type)
 
int(* StateGetEventInfo )(const char *event_name, uint8_t *event_id, AppLayerEventType *event_type)
 
AppLayerStateData *(* GetStateData )(void *state)
 
AppLayerTxData *(* GetTxData )(void *tx)
 
bool(* ApplyTxConfig )(void *state, void *tx, int mode, AppLayerTxConfig)
 
void(* SetStreamDepthFlag )(void *tx, uint8_t flags)
 
AppLayerParserGetFrameIdByNameFn GetFrameIdByName
 
AppLayerParserGetFrameNameByIdFn GetFrameNameById
 
AppLayerParserGetStateIdByNameFn GetStateIdByName
 
AppLayerParserGetStateNameByIdFn GetStateNameById
 
uint32_t stream_depth
 
uint32_t option_flags
 
uint32_t internal_flags
 
void(* RegisterUnittests )(void)
 

Detailed Description

App layer protocol parser context.

Definition at line 68 of file app-layer-parser.c.

Field Documentation

◆ ApplyTxConfig

bool(* AppLayerParserProtoCtx_::ApplyTxConfig) (void *state, void *tx, int mode, AppLayerTxConfig)

◆ complete_tc

int AppLayerParserProtoCtx_::complete_tc

◆ complete_ts

int AppLayerParserProtoCtx_::complete_ts

◆ first_data_dir

uint8_t AppLayerParserProtoCtx_::first_data_dir

◆ GetFrameIdByName

AppLayerParserGetFrameIdByNameFn AppLayerParserProtoCtx_::GetFrameIdByName

◆ GetFrameNameById

AppLayerParserGetFrameNameByIdFn AppLayerParserProtoCtx_::GetFrameNameById

◆ GetStateData

AppLayerStateData *(* AppLayerParserProtoCtx_::GetStateData) (void *state)

◆ GetStateIdByName

AppLayerParserGetStateIdByNameFn AppLayerParserProtoCtx_::GetStateIdByName

◆ GetStateNameById

AppLayerParserGetStateNameByIdFn AppLayerParserProtoCtx_::GetStateNameById

◆ GetTxData

AppLayerTxData *(* AppLayerParserProtoCtx_::GetTxData) (void *tx)

◆ GetTxFiles

AppLayerGetFileState(* AppLayerParserProtoCtx_::GetTxFiles) (void *, uint8_t)

get FileContainer reference from the TX. MUST return a non-NULL reference if the TX has or may have files in the requested direction at some point.

Definition at line 90 of file app-layer-parser.c.

Referenced by AppLayerParserGetTxFiles(), AppLayerParserRegisterGetTxFilesFunc(), and AppLayerParserSupportsFiles().

◆ internal_flags

uint32_t AppLayerParserProtoCtx_::internal_flags

◆ LocalStorageAlloc

void *(* AppLayerParserProtoCtx_::LocalStorageAlloc) (void)

◆ LocalStorageFree

void(* AppLayerParserProtoCtx_::LocalStorageFree) (void *)

◆ logger

bool AppLayerParserProtoCtx_::logger

◆ logger_bits

uint32_t AppLayerParserProtoCtx_::logger_bits

registered loggers for this proto

Definition at line 80 of file app-layer-parser.c.

Referenced by AppLayerParserProtocolGetLoggerBits(), and AppLayerParserRegisterLoggerBits().

◆ option_flags

uint32_t AppLayerParserProtoCtx_::option_flags

Definition at line 119 of file app-layer-parser.c.

Referenced by AppLayerParserParse(), and AppLayerParserRegisterOptionFlags().

◆ Parser

AppLayerParserFPtr AppLayerParserProtoCtx_::Parser[2]

Definition at line 71 of file app-layer-parser.c.

Referenced by AppLayerParserParse(), and AppLayerParserRegisterParser().

◆ RegisterUnittests

void(* AppLayerParserProtoCtx_::RegisterUnittests) (void)

Definition at line 126 of file app-layer-parser.c.

Referenced by AppLayerParserRegisterProtocolUnittests().

◆ SetStreamDepthFlag

void(* AppLayerParserProtoCtx_::SetStreamDepthFlag) (void *tx, uint8_t flags)

◆ StateAlloc

void *(* AppLayerParserProtoCtx_::StateAlloc) (void *, AppProto)

◆ StateFree

void(* AppLayerParserProtoCtx_::StateFree) (void *)

Definition at line 83 of file app-layer-parser.c.

Referenced by AppLayerParserRegisterStateFuncs().

◆ StateGetEventInfo

int(* AppLayerParserProtoCtx_::StateGetEventInfo) (const char *event_name, uint8_t *event_id, AppLayerEventType *event_type)

◆ StateGetEventInfoById

int(* AppLayerParserProtoCtx_::StateGetEventInfoById) (uint8_t event_id, const char **event_name, AppLayerEventType *event_type)

◆ StateGetProgress

int(* AppLayerParserProtoCtx_::StateGetProgress) (void *alstate, uint8_t direction)

◆ StateGetTx

void *(* AppLayerParserProtoCtx_::StateGetTx) (void *alstate, uint64_t tx_id)

Definition at line 94 of file app-layer-parser.c.

Referenced by AppLayerParserGetTx(), and AppLayerParserRegisterGetTx().

◆ StateGetTxCnt

uint64_t(* AppLayerParserProtoCtx_::StateGetTxCnt) (void *alstate)

Definition at line 93 of file app-layer-parser.c.

Referenced by AppLayerParserGetTxCnt(), and AppLayerParserRegisterGetTxCnt().

◆ StateGetTxIterator

AppLayerGetTxIteratorFunc AppLayerParserProtoCtx_::StateGetTxIterator

◆ StateTransactionFree

void(* AppLayerParserProtoCtx_::StateTransactionFree) (void *, uint64_t)

◆ stream_depth

uint32_t AppLayerParserProtoCtx_::stream_depth

The documentation for this struct was generated from the following file: