Go to the documentation of this file.
48 static void DetectPktDataTestRegister(
void);
80 "previous transforms not consumed before 'pkt_data'");
90 static int g_file_data_buffer_id = 0;
92 static int DetectPktDataTest01(
void)
99 "(file_data; content:\"in file data\";"
100 " pkt_data; content:\"in pkt data\"; sid:1;)");
117 static int DetectPktDataTest02(
void)
124 "(file_data; compress_whitespace; "
125 " pkt_data; content:\"in pkt data\"; sid:1;)");
131 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
@ SC_ERR_INVALID_SIGNATURE
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
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
Signature * DetectEngineAppendSig(DetectEngineCtx *de_ctx, const char *sigstr)
Parse and append a Signature into the Detection Engine Context signature list.
SigTableElmt sigmatch_table[DETECT_TBLSIZE]
#define SCLogError(err_code,...)
Macro used to log ERROR messages.
a single match condition for a signature
DetectEngineCtx * DetectEngineCtxInit(void)
DetectEngineTransforms transforms
void(* RegisterTests)(void)