static DetectParseRegex parse_regex;
-static int DetectBytetestMatch(DetectEngineThreadCtx *det_ctx,
- Packet *p, const Signature *s, const SigMatchCtx *ctx);
static int DetectBytetestSetup(DetectEngineCtx *de_ctx, Signature *s, const char *optstr);
static void DetectBytetestFree(DetectEngineCtx *, void *ptr);
#ifdef UNITTESTS
sigmatch_table[DETECT_BYTETEST].name = "byte_test";
sigmatch_table[DETECT_BYTETEST].desc = "extract <num of bytes> and perform an operation selected with <operator> against the value in <test value> at a particular <offset>";
sigmatch_table[DETECT_BYTETEST].url = "/rules/payload-keywords.html#byte-test";
- sigmatch_table[DETECT_BYTETEST].Match = DetectBytetestMatch;
sigmatch_table[DETECT_BYTETEST].Setup = DetectBytetestSetup;
sigmatch_table[DETECT_BYTETEST].Free = DetectBytetestFree;
#ifdef UNITTESTS
}
-static int DetectBytetestMatch(DetectEngineThreadCtx *det_ctx,
- Packet *p, const Signature *s, const SigMatchCtx *ctx)
-{
- return DetectBytetestDoMatch(det_ctx, s, ctx, p->payload, p->payload_len,
- ((DetectBytetestData *)ctx)->flags, 0, 0, 0);
-}
-
static DetectBytetestData *DetectBytetestParse(
const char *optstr, char **value, char **offset, char **nbytes_str)
{