|
|
@ -66,9 +66,6 @@ static int PrefilterMpmHTTPFiledataRegister(DetectEngineCtx *de_ctx, SigGroupHea
|
|
|
|
MpmCtx *mpm_ctx, const DetectBufferMpmRegistry *mpm_reg, int list_id);
|
|
|
|
MpmCtx *mpm_ctx, const DetectBufferMpmRegistry *mpm_reg, int list_id);
|
|
|
|
|
|
|
|
|
|
|
|
/* file API */
|
|
|
|
/* file API */
|
|
|
|
static uint8_t DetectEngineInspectFiledata(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
|
|
|
|
|
|
const DetectEngineAppInspectionEngine *engine, const Signature *s, Flow *f, uint8_t flags,
|
|
|
|
|
|
|
|
void *alstate, void *txv, uint64_t tx_id);
|
|
|
|
|
|
|
|
int PrefilterMpmFiledataRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx,
|
|
|
|
int PrefilterMpmFiledataRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx,
|
|
|
|
const DetectBufferMpmRegistry *mpm_reg, int list_id);
|
|
|
|
const DetectBufferMpmRegistry *mpm_reg, int list_id);
|
|
|
|
|
|
|
|
|
|
|
@ -240,13 +237,6 @@ static void DetectFiledataSetupCallback(const DetectEngineCtx *de_ctx,
|
|
|
|
|
|
|
|
|
|
|
|
/* common */
|
|
|
|
/* common */
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct PrefilterMpmFiledata {
|
|
|
|
|
|
|
|
int list_id;
|
|
|
|
|
|
|
|
int base_list_id;
|
|
|
|
|
|
|
|
const MpmCtx *mpm_ctx;
|
|
|
|
|
|
|
|
const DetectEngineTransforms *transforms;
|
|
|
|
|
|
|
|
} PrefilterMpmFiledata;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void PrefilterMpmFiledataFree(void *ptr)
|
|
|
|
static void PrefilterMpmFiledataFree(void *ptr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SCFree(ptr);
|
|
|
|
SCFree(ptr);
|
|
|
@ -588,7 +578,7 @@ static InspectionBuffer *FiledataGetDataCallback(DetectEngineThreadCtx *det_ctx,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static uint8_t DetectEngineInspectFiledata(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
|
|
uint8_t DetectEngineInspectFiledata(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
|
|
const DetectEngineAppInspectionEngine *engine, const Signature *s, Flow *f, uint8_t flags,
|
|
|
|
const DetectEngineAppInspectionEngine *engine, const Signature *s, Flow *f, uint8_t flags,
|
|
|
|
void *alstate, void *txv, uint64_t tx_id)
|
|
|
|
void *alstate, void *txv, uint64_t tx_id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|