Go to the documentation of this file.
56 const char *
str = offsetstr;
61 SCLogError(
"offset needs preceding content option.");
69 SCLogError(
"can't use offset with startswith.");
73 SCLogError(
"can't use multiple offsets for the same content.");
78 "keyword like within/distance with a absolute "
79 "relative keyword like depth/offset for the same "
85 "negated keyword set along with 'fast_pattern'.");
90 "keyword set along with 'fast_pattern:only;'.");
93 if (
str[0] !=
'-' && isalpha((
unsigned char)
str[0])) {
97 "seen in offset - %s.",
109 if (cd->
depth != 0) {
111 SCLogDebug(
"depth increased to %"PRIu32
" to match pattern len",
SigTableElmt * sigmatch_table
main detection engine ctx
int StringParseUint16(uint16_t *res, int base, size_t len, const char *str)
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
uint8_t DetectByteIndexType
#define DETECT_CONTENT_DISTANCE
#define DETECT_CONTENT_NEGATED
void DetectOffsetRegister(void)
#define DETECT_CONTENT_STARTS_WITH
bool DetectByteRetrieveSMVar(const char *arg, const Signature *s, DetectByteIndexType *index)
Used to retrieve args from BM.
#define SCLogError(...)
Macro used to log ERROR messages.
#define DETECT_CONTENT_OFFSET
#define DETECT_CONTENT_FAST_PATTERN_ONLY
a single match condition for a signature
SigMatch * DetectGetLastSMFromLists(const Signature *s,...)
Returns the sm with the largest index (added latest) from the lists passed to us.
#define DETECT_CONTENT_FAST_PATTERN
#define DETECT_CONTENT_WITHIN
#define DETECT_CONTENT_OFFSET_VAR