suricata
|
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "detect-engine.h"
#include "detect-parse.h"
#include "detect-content.h"
#include "detect-uricontent.h"
#include "detect-bytejump.h"
#include "detect-byte-extract.h"
#include "app-layer.h"
#include "flow-var.h"
#include "util-byte.h"
#include "util-debug.h"
#include "detect-pcre.h"
#include "detect-within.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
Go to the source code of this file.
Functions | |
void | DetectWithinRegisterTests (void) |
void | DetectWithinRegister (void) |
Implements the within keyword
Definition in file detect-within.c.
void DetectWithinRegister | ( | void | ) |
Definition at line 51 of file detect-within.c.
References ByteExtractStringInt32(), DetectContentData_::content_len, SigMatch_::ctx, SigTableElmt_::desc, DETECT_CONTENT, DETECT_CONTENT_DEPTH, DETECT_CONTENT_FAST_PATTERN, DETECT_CONTENT_FAST_PATTERN_ONLY, DETECT_CONTENT_NEGATED, DETECT_CONTENT_OFFSET, DETECT_CONTENT_WITHIN, DETECT_CONTENT_WITHIN_BE, DETECT_CONTENT_WITHIN_NEXT, DETECT_PCRE, DETECT_PCRE_RELATIVE_NEXT, DETECT_WITHIN, DetectByteExtractRetrieveSMVar(), DetectEngineAppendSig(), DetectEngineCtxFree(), DetectEngineCtxInit(), DetectGetLastSMByListPtr(), DetectGetLastSMFromLists(), DetectWithinRegisterTests(), DOC_URL, DOC_VERSION, FAIL_IF_NOT, FAIL_IF_NULL, DetectPcreData_::flags, DetectContentData_::flags, SigTableElmt_::Free, SigTableElmt_::Match, SigTableElmt_::name, PASS, SigMatch_::prev, SigTableElmt_::RegisterTests, SC_ERR_INVALID_SIGNATURE, SC_ERR_OFFSET_MISSING_CONTENT, SC_ERR_WITHIN_INVALID, SCLogError, SigTableElmt_::Setup, sigmatch_table, str, SigMatch_::type, SigTableElmt_::url, UTHBuildPacket(), UTHFreePacket(), UTHPacketMatchSig(), and DetectContentData_::within.
Referenced by SigTableSetup().
void DetectWithinRegisterTests | ( | void | ) |
Definition at line 235 of file detect-within.c.
References UtRegisterTest().
Referenced by DetectWithinRegister().