Go to the documentation of this file.
18 #include "../suricata-common.h"
20 #include "../detect.h"
21 #include "../detect-parse.h"
22 #include "../detect-engine-prefilter-common.h"
24 #include "../detect-ipv6hdr.h"
26 #include "../util-unittest.h"
28 static int DetectIpv6hdrParseTest01 (
void)
34 "alert ip any any -> any any (ipv6.hdr; content:\"A\"; sid:1; rev:1;)");
46 UtRegisterTest(
"DetectIpv6hdrParseTest01", DetectIpv6hdrParseTest01);
#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.
void DetectIpv6hdrRegisterTests(void)
this function registers unit tests for DetectIpv6hdr
#define PASS
Pass the test.
DetectEngineCtx * DetectEngineCtxInit(void)