38static void DetectRevRegisterTests(
void);
56 SCLogError(
"invalid input as arg to rev keyword");
64 SCLogError(
"duplicated 'rev' keyword detected");
79static int RevTestParse01(
void)
97static int RevTestParse02(
void)
112static int RevTestParse03(
void)
118 de_ctx,
"alert tcp any any -> any any (content:\"ABC\"; rev:\";)"));
127static int RevTestParse04(
void)
133 de_ctx,
"alert tcp any any -> any any (content:\"ABC\"; rev:0;)"));
142static void DetectRevRegisterTests(
void)
DetectEngineCtx * DetectEngineCtxInit(void)
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
Signature * DetectEngineAppendSig(DetectEngineCtx *, const char *)
Parse and append a Signature into the Detection Engine Context signature list.
SigTableElmt * sigmatch_table
void DetectRevRegister(void)
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
#define PASS
Pass the test.
#define FAIL_IF(expr)
Fail a test if expression evaluates to true.
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
main detection engine ctx
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
void(* RegisterTests)(void)
int ByteExtractStringUint32(uint32_t *res, int base, size_t len, const char *str)
#define SCLogError(...)
Macro used to log ERROR messages.