SCReturn;
}
-int PrefilterAppendEngine(DetectEngineCtx *de_ctx, SigGroupHead *sgh,
- void (*PrefilterFunc)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx),
- void *pectx, void (*FreeFunc)(void *pectx),
- const char *name)
+int PrefilterAppendEngine(DetectEngineCtx *de_ctx, SigGroupHead *sgh, PrefilterPktFn PrefilterFunc,
+ void *pectx, void (*FreeFunc)(void *pectx), const char *name)
{
if (sgh == NULL || PrefilterFunc == NULL || pectx == NULL)
return -1;
}
int PrefilterAppendPayloadEngine(DetectEngineCtx *de_ctx, SigGroupHead *sgh,
- void (*PrefilterFunc)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx),
- void *pectx, void (*FreeFunc)(void *pectx),
- const char *name)
+ PrefilterPktFn PrefilterFunc, void *pectx, void (*FreeFunc)(void *pectx), const char *name)
{
if (sgh == NULL || PrefilterFunc == NULL || pectx == NULL)
return -1;
void Prefilter(DetectEngineThreadCtx *, const SigGroupHead *, Packet *p,
const uint8_t flags);
-int PrefilterAppendEngine(DetectEngineCtx *de_ctx, SigGroupHead *sgh,
- void (*Prefilter)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx),
- void *pectx, void (*FreeFunc)(void *pectx),
- const char *name);
+int PrefilterAppendEngine(DetectEngineCtx *de_ctx, SigGroupHead *sgh, PrefilterPktFn PrefilterFunc,
+ void *pectx, void (*FreeFunc)(void *pectx), const char *name);
int PrefilterAppendPayloadEngine(DetectEngineCtx *de_ctx, SigGroupHead *sgh,
- void (*Prefilter)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx),
- void *pectx, void (*FreeFunc)(void *pectx),
- const char *name);
+ PrefilterPktFn PrefilterFunc, void *pectx, void (*FreeFunc)(void *pectx), const char *name);
int PrefilterAppendTxEngine(DetectEngineCtx *de_ctx, SigGroupHead *sgh,
PrefilterTxFn PrefilterTxFunc, const AppProto alproto, const int tx_min_progress,
void *pectx, void (*FreeFunc)(void *pectx), const char *name);
} MpmStore;
+typedef void (*PrefilterPktFn)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx);
typedef void (*PrefilterFrameFn)(DetectEngineThreadCtx *det_ctx, const void *pectx, Packet *p,
const struct Frames *frames, const struct Frame *frame);
* for other engines. */
void *pectx;
- void (*Prefilter)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx);
+ PrefilterPktFn Prefilter;
PrefilterTxFn PrefilterTx;
PrefilterFrameFn PrefilterFrame;
void *pectx;
union {
- void (*Prefilter)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx);
+ PrefilterPktFn Prefilter;
PrefilterTxFn PrefilterTx;
PrefilterFrameFn PrefilterFrame;
} cb;