Go to the documentation of this file.
18 #include "../suricata-common.h"
20 #include "../detect.h"
21 #include "../detect-parse.h"
23 #include "../detect-icmpv4hdr.h"
25 #include "../util-unittest.h"
27 static int DetectIcmpv4HdrParseTest01(
void)
33 de_ctx,
"alert icmp any any -> any any (icmpv4.hdr; content:\"A\"; sid:1; rev:1;)"));
44 UtRegisterTest(
"DetectIcmpv4HdrParseTest01", DetectIcmpv4HdrParseTest01);
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
main detection engine ctx
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
Signature * DetectEngineAppendSig(DetectEngineCtx *, const char *)
Parse and append a Signature into the Detection Engine Context signature list.
#define PASS
Pass the test.
void DetectIcmpv4HdrRegisterTests(void)
this function registers unit tests for DetectIcmpv4Hdr
DetectEngineCtx * DetectEngineCtxInit(void)