Go to the documentation of this file.
47 static void DetectPktDataTestRegister(
void);
78 SCLogError(
"previous transforms not consumed before 'pkt_data'");
88 static int g_file_data_buffer_id = 0;
90 static int DetectPktDataTest01(
void)
97 "(file_data; content:\"in file data\";"
98 " pkt_data; content:\"in pkt data\"; sid:1;)");
115 static int DetectPktDataTest02(
void)
122 "(file_data; compress_whitespace; "
123 " pkt_data; content:\"in pkt data\"; sid:1;)");
129 static void DetectPktDataTestRegister(
void)
#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.
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
#define FAIL_IF_NOT(expr)
Fail a test if expression evaluates to false.
int DetectBufferTypeGetByName(const char *name)
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
#define PASS
Pass the test.
void DetectPktDataRegister(void)
Registration function for keyword: file_data.
SignatureInitData * init_data
Data structures and function prototypes for keeping state for the detection engine.
#define DETECT_SM_LIST_NOTSET
SigTableElmt sigmatch_table[DETECT_TBLSIZE]
#define SCLogError(...)
Macro used to log ERROR messages.
a single match condition for a signature
DetectEngineCtx * DetectEngineCtxInit(void)
DetectEngineTransforms transforms
void(* RegisterTests)(void)