38static void DetectSidRegisterTests(
void);
58 SCLogError(
"invalid input as arg to sid keyword");
66 SCLogError(
"duplicated 'sid' keyword detected");
79static int SidTestParse01(
void)
93static int SidTestParse02(
void)
105static int SidTestParse03(
void)
111 de_ctx,
"alert tcp any any -> any any (content:\"ABC\"; sid:\";)"));
117static int SidTestParse04(
void)
123 de_ctx,
"alert tcp any any -> any any (content:\"ABC\"; sid: 0;)"));
136static void DetectSidRegisterTests(
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 DetectSidRegister(void)
#define SIGMATCH_SUPPORT_FIREWALL
#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(* 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.