suricata
detect-engine-helper.c File Reference
Include dependency graph for detect-engine-helper.c:

Go to the source code of this file.

Functions

int DetectHelperBufferRegister (const char *name, AppProto alproto, bool toclient, bool toserver)
 
InspectionBufferDetectHelperGetData (struct DetectEngineThreadCtx_ *det_ctx, const DetectEngineTransforms *transforms, Flow *f, const uint8_t flow_flags, void *txv, const int list_id, bool(*GetBuf)(void *txv, const uint8_t flow_flags, const uint8_t **buf, uint32_t *buf_len))
 
int DetectHelperBufferMpmRegister (const char *name, const char *desc, AppProto alproto, bool toclient, bool toserver, InspectionBufferGetDataPtr GetData)
 
int DetectHelperMultiBufferMpmRegister (const char *name, const char *desc, AppProto alproto, bool toclient, bool toserver, InspectionMultiBufferGetDataPtr GetData)
 
int DetectHelperKeywordRegister (const SCSigTableElmt *kw)
 
int DetectHelperTransformRegister (const SCTransformTableElmt *kw)
 
InspectionBufferDetectHelperGetMultiData (struct DetectEngineThreadCtx_ *det_ctx, const DetectEngineTransforms *transforms, Flow *f, const uint8_t flow_flags, void *txv, const int list_id, uint32_t index, MultiGetTxBuffer GetBuf)
 
const uint8_t * InspectionBufferPtr (InspectionBuffer *buf)
 
uint32_t InspectionBufferLength (InspectionBuffer *buf)
 

Detailed Description

Function Documentation

◆ DetectHelperBufferMpmRegister()

int DetectHelperBufferMpmRegister ( const char *  name,
const char *  desc,
AppProto  alproto,
bool  toclient,
bool  toserver,
InspectionBufferGetDataPtr  GetData 
)

Definition at line 65 of file detect-engine-helper.c.

◆ DetectHelperBufferRegister()

int DetectHelperBufferRegister ( const char *  name,
AppProto  alproto,
bool  toclient,
bool  toserver 
)

◆ DetectHelperGetData()

InspectionBuffer* DetectHelperGetData ( struct DetectEngineThreadCtx_ det_ctx,
const DetectEngineTransforms transforms,
Flow f,
const uint8_t  flow_flags,
void *  txv,
const int  list_id,
bool(*)(void *txv, const uint8_t flow_flags, const uint8_t **buf, uint32_t *buf_len)  GetBuf 
)

◆ DetectHelperGetMultiData()

InspectionBuffer* DetectHelperGetMultiData ( struct DetectEngineThreadCtx_ det_ctx,
const DetectEngineTransforms transforms,
Flow f,
const uint8_t  flow_flags,
void *  txv,
const int  list_id,
uint32_t  index,
MultiGetTxBuffer  GetBuf 
)

◆ DetectHelperKeywordRegister()

◆ DetectHelperMultiBufferMpmRegister()

int DetectHelperMultiBufferMpmRegister ( const char *  name,
const char *  desc,
AppProto  alproto,
bool  toclient,
bool  toserver,
InspectionMultiBufferGetDataPtr  GetData 
)

Definition at line 84 of file detect-engine-helper.c.

◆ DetectHelperTransformRegister()

◆ InspectionBufferLength()

uint32_t InspectionBufferLength ( InspectionBuffer buf)

Definition at line 180 of file detect-engine-helper.c.

References InspectionBuffer::inspect_len.

◆ InspectionBufferPtr()

const uint8_t* InspectionBufferPtr ( InspectionBuffer buf)

Definition at line 175 of file detect-engine-helper.c.

References InspectionBuffer::inspect.