suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "host.h"
#include "host-storage.h"
#include "detect.h"
#include "detect-parse.h"
#include "flow-var.h"
#include "decode-events.h"
#include "stream-tcp.h"
#include "detect-threshold.h"
#include "detect-engine-threshold.h"
#include "detect-engine-address.h"
#include "detect-engine-build.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-byte.h"
#include "util-debug.h"
#include "util-cpu.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-alert.h"
#include "util-time.h"
#include "util-hashlist.h"
#include "packet.h"
#include "action-globals.h"
Go to the source code of this file.
#define | PARSE_REGEX_NAME "(track|type|count|seconds|multiplier)" |
#define | PARSE_REGEX_VALUE "(limit|both|threshold|backoff|by_dst|by_src|by_both|by_rule|by_flow|\\d+)" |
#define | PARSE_REGEX |
void | DetectThresholdRegister (void) |
Registration function for threshold: keyword. | |
DetectThresholdData * | DetectThresholdDataCopy (DetectThresholdData *de) |
Make a deep-copy of an extant DetectTHresholdData object. | |
Implements the threshold keyword.
The feature depends on what is provided by detect-engine-threshold.c and util-threshold-config.c
Definition in file detect-threshold.c.
#define PARSE_REGEX |
Definition at line 67 of file detect-threshold.c.
#define PARSE_REGEX_NAME "(track|type|count|seconds|multiplier)" |
Definition at line 63 of file detect-threshold.c.
#define PARSE_REGEX_VALUE "(limit|both|threshold|backoff|by_dst|by_src|by_both|by_rule|by_flow|\\d+)" |
Definition at line 64 of file detect-threshold.c.
DetectThresholdData * DetectThresholdDataCopy | ( | DetectThresholdData * | de | ) |
Make a deep-copy of an extant DetectTHresholdData object.
de | pointer to DetectThresholdData |
Definition at line 343 of file detect-threshold.c.
References DetectThresholdData_::addrs, DetectAddressCopy(), DetectAddressHead_::ipv4_head, DetectAddressHead_::ipv6_head, DetectAddress_::next, DetectAddress_::prev, SCCalloc, and unlikely.
void DetectThresholdRegister | ( | void | ) |
Registration function for threshold: keyword.
Registration function for threshold: keyword
Definition at line 86 of file detect-threshold.c.
References SigTableElmt_::desc, DETECT_THRESHOLD, DetectSetupParseRegexes(), SigTableElmt_::flags, SigTableElmt_::Free, SigTableElmt_::Match, SigTableElmt_::name, PARSE_REGEX, SigTableElmt_::RegisterTests, SigTableElmt_::Setup, SIGMATCH_IPONLY_COMPAT, sigmatch_table, and SigTableElmt_::url.
Referenced by SigTableSetup().