Go to the documentation of this file.
35 #include "rust-bindings.h"
55 static int g_ike_vendor_buffer_id = 0;
72 if (rs_ike_tx_get_vendor(cbdata->
txv, cbdata->
local_id, &data, &data_len) == 0) {
97 const int list_id = ctx->
list_id;
99 uint32_t local_id = 0;
117 static void PrefilterMpmIkeVendorFree(
void *ptr)
134 mpm_reg->
app_v2.tx_min_progress, pectx, PrefilterMpmIkeVendorFree, mpm_reg->
pname);
139 void *alstate,
void *
txv, uint64_t tx_id)
154 IkeVendorGetData(det_ctx, transforms, f, &cbdata, engine->
sm_list);
155 if (buffer == NULL || buffer->
inspect == NULL)
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
void DetectAppLayerMpmRegister2(const char *name, int direction, int priority, PrefilterRegisterFunc PrefilterRegister, InspectionBufferGetDataPtr GetData, AppProto alproto, int tx_min_progress)
register a MPM engine
#define SIGMATCH_INFO_STICKY_BUFFER
Container for matching data for a signature group.
int DetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
main detection engine ctx
void DetectBufferTypeSupportsMultiInstance(const char *name)
one time registration of keywords at start up
struct PrefilterMpmIkeVendor PrefilterMpmIkeVendor
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
DetectEngineTransforms transforms
const DetectEngineTransforms * transforms
int DetectBufferTypeGetByName(const char *name)
#define SIG_FLAG_TOSERVER
void InspectionBufferSetupMultiEmpty(InspectionBuffer *buffer)
setup the buffer empty
void DetectIkeVendorRegister(void)
Registration function for ike.vendor keyword.
#define DETECT_ENGINE_INSPECT_SIG_MATCH
void DetectAppLayerInspectEngineRegister2(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr2 Callback2, InspectionBufferGetDataPtr GetData)
register inspect engine at start up time
#define SCReturnPtr(x, type)
uint32_t(* Search)(const struct MpmCtx_ *, struct MpmThreadCtx_ *, PrefilterRuleStore *, const uint8_t *, uint32_t)
uint16_t discontinue_matching
uint8_t DetectEngineContentInspection(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, Packet *p, Flow *f, const uint8_t *buffer, uint32_t buffer_len, uint32_t stream_start_offset, uint8_t flags, uint8_t inspection_mode)
Run the actual payload match functions.
struct AppLayerTxData AppLayerTxData
#define PREFILTER_PROFILING_ADD_BYTES(det_ctx, bytes)
#define DETECT_CI_FLAGS_SINGLE
struct DetectBufferMpmRegistry_::@86::@88 app_v2
SigTableElmt sigmatch_table[DETECT_TBLSIZE]
int inspection_recursion_counter
void InspectionBufferSetupMulti(InspectionBuffer *buffer, const DetectEngineTransforms *transforms, const uint8_t *data, const uint32_t data_len)
setup the buffer with our initial data
int PrefilterAppendTxEngine(DetectEngineCtx *de_ctx, SigGroupHead *sgh, PrefilterTxFn PrefilterTxFunc, AppProto alproto, int tx_min_progress, void *pectx, void(*FreeFunc)(void *pectx), const char *name)
#define DETECT_ENGINE_INSPECT_SIG_NO_MATCH
struct DetectEngineAppInspectionEngine_::@83 v2
const DetectEngineTransforms * transforms
MpmTableElmt mpm_table[MPM_TABLE_SIZE]
InspectionBuffer * InspectionBufferMultipleForListGet(DetectEngineThreadCtx *det_ctx, const int list_id, const uint32_t local_id)
for a InspectionBufferMultipleForList get a InspectionBuffer
@ DETECT_ENGINE_CONTENT_INSPECTION_MODE_STATE