Go to the documentation of this file.
37 static void DetectSidRegisterTests(
void);
56 id = strtoul(sidstr, &endptr, 10);
57 if (endptr == NULL || *endptr !=
'\0') {
84 static int SidTestParse01(
void)
98 static int SidTestParse02(
void)
110 static int SidTestParse03(
void)
116 de_ctx,
"alert tcp any any -> any any (content:\"ABC\"; sid:\";)"));
122 static int SidTestParse04(
void)
128 de_ctx,
"alert tcp any any -> any any (content:\"ABC\"; sid: 0;)"));
141 static void DetectSidRegisterTests(
void)
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void DetectSidRegister(void)
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
@ SC_ERR_INVALID_RULE_ARGUMENT
main detection engine ctx
@ SC_ERR_INVALID_SIGNATURE
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
#define PASS
Pass the test.
int(* Match)(DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
Signature * DetectEngineAppendSig(DetectEngineCtx *de_ctx, const char *sigstr)
Parse and append a Signature into the Detection Engine Context signature list.
#define FAIL_IF(expr)
Fail a test if expression evaluates to true.
SigTableElmt sigmatch_table[DETECT_TBLSIZE]
#define SCLogError(err_code,...)
Macro used to log ERROR messages.
DetectEngineCtx * DetectEngineCtxInit(void)
@ SC_ERR_INVALID_NUMERIC_VALUE
void(* RegisterTests)(void)