42static void GidRegisterTests(
void);
77 SCLogError(
"invalid input as arg to gid keyword");
97static int GidTestParse01 (
void)
115static int GidTestParse02 (
void)
130static int GidTestParse03 (
void)
136 de_ctx,
"alert tcp any any -> any any (content:\"ABC\"; gid:\";)"));
145static void GidRegisterTests(
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.
void DetectGidRegister(void)
Registration function for gid: keyword.
SigTableElmt * sigmatch_table
#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(* Free)(DetectEngineCtx *, void *)
void(* RegisterTests)(void)
int(* Match)(DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
int ByteExtractStringUint32(uint32_t *res, int base, size_t len, const char *str)
#define SCLogError(...)
Macro used to log ERROR messages.