Go to the documentation of this file.
33 DetectEntropyData *ded = SCDetectEntropyParse(arg);
60 SCDetectEntropyFree(ded);
68 DetectEntropyData *ded = (DetectEntropyData *)ptr;
70 SCDetectEntropyFree(ptr);
77 double entropy = -1.0;
78 bool rc = SCDetectEntropyMatch(buffer, buffer_len, (
const DetectEntropyData *)
ctx, &entropy);
80 if (flow && entropy != -1.0) {
81 DetectEntropyData *ded = (DetectEntropyData *)
ctx;
SigTableElmt * sigmatch_table
void(* Free)(DetectEngineCtx *, void *)
main detection engine ctx
const char * DetectEngineBufferTypeGetNameById(const DetectEngineCtx *de_ctx, const int id)
uint32_t VarNameStoreRegister(const char *name, const enum VarTypes type)
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
bool DetectEntropyDoMatch(DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchCtx *ctx, Flow *flow, const uint8_t *buffer, const uint32_t buffer_len)
SigMatch * SCSigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.
void VarNameStoreUnregister(const uint32_t id, const enum VarTypes type)
SignatureInitData * init_data
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
#define DETECT_SM_LIST_NOTSET
void DetectEntropyRegister(void)
void FlowVarAddFloat(Flow *f, uint32_t idx, double value)
int DetectBufferGetActiveList(DetectEngineCtx *de_ctx, Signature *s)