suricata
detect-bsize.c File Reference
#include "../util-unittest.h"
Include dependency graph for detect-bsize.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TEST_OK(str, m, lo, hi)
 
#define TEST_FAIL(str)
 
#define TEST_OK(rule)
 
#define TEST_FAIL(rule)
 

Macro Definition Documentation

◆ TEST_FAIL [1/2]

#define TEST_FAIL (   rule)
Value:
{ \
FAIL_IF_NULL(de_ctx); \
SCLogNotice("rule: %s", rule); \
FAIL_IF_NOT_NULL(s); \
DetectEngineCtxFree(de_ctx); \
}
DetectEngineCtx * DetectEngineCtxInit(void)
Signature * DetectEngineAppendSig(DetectEngineCtx *, const char *)
Parse and append a Signature into the Detection Engine Context signature list.
DetectEngineCtx * de_ctx
main detection engine ctx
Definition detect.h:932
Signature container.
Definition detect.h:668

Definition at line 28 of file detect-bsize.c.

◆ TEST_FAIL [2/2]

#define TEST_FAIL (   str)
Value:
{ \
FAIL_IF_NOT_NULL(bsz); \
}
DetectUintData_u64 * DetectU64Parse(const char *u64str)
DetectUintData_u64 DetectU64Data
#define str(s)

Definition at line 28 of file detect-bsize.c.

◆ TEST_OK [1/2]

#define TEST_OK (   rule)
Value:
{ \
FAIL_IF_NULL(de_ctx); \
SCLogNotice("rule: %s", rule); \
FAIL_IF_NULL(s); \
DetectEngineCtxFree(de_ctx); \
}

Definition at line 20 of file detect-bsize.c.

◆ TEST_OK [2/2]

#define TEST_OK (   str,
  m,
  lo,
  hi 
)
Value:
{ \
FAIL_IF_NULL(bsz); \
FAIL_IF_NOT(bsz->mode == (m)); \
DetectBsizeFree(NULL, bsz); \
SCLogDebug("str %s OK", (str)); \
}
SCMutex m
Definition flow-hash.h:6

Definition at line 20 of file detect-bsize.c.