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. More... | |
DetectThresholdData * | DetectThresholdDataCopy (DetectThresholdData *de) |
Make a deep-copy of an extant DetectTHresholdData object. More... | |
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 68 of file detect-threshold.c.
#define PARSE_REGEX_NAME "(track|type|count|seconds|multiplier)" |
Definition at line 64 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 65 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, de, 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, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.
Referenced by SigTableSetup().