detect-threshold.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DetectThresholdData_
struct  DetectThresholdEntry_


#define TYPE_LIMIT   1
#define TYPE_BOTH   2
#define TYPE_THRESHOLD   3
#define TYPE_DETECTION   4
#define TYPE_RATE   5
#define TYPE_SUPPRESS   6
#define TRACK_DST   1
#define TRACK_SRC   2
#define TRACK_RULE   3
#define TRACK_EITHER   4
#define TRACK_BOTH   5 /* used by rate_filter to match detections by both src and dst addresses */
#define TH_ACTION_ALERT   0x01
#define TH_ACTION_DROP   0x02
#define TH_ACTION_PASS   0x04
#define TH_ACTION_LOG   0x08
#define TH_ACTION_SDROP   0x10
#define TH_ACTION_REJECT   0x20


typedef struct DetectThresholdData_ DetectThresholdData
typedef struct DetectThresholdEntry_ DetectThresholdEntry


void DetectThresholdRegister (void)
 Registration function for threshold: keyword. More...
DetectThresholdDataDetectThresholdDataCopy (DetectThresholdData *)
 Make a deep-copy of an extant DetectTHresholdData object. More...

Detailed Description

Macro Definition Documentation


#define TH_ACTION_ALERT   0x01

Definition at line 42 of file detect-threshold.h.


#define TH_ACTION_DROP   0x02

Definition at line 43 of file detect-threshold.h.


#define TH_ACTION_LOG   0x08

Definition at line 45 of file detect-threshold.h.


#define TH_ACTION_PASS   0x04

Definition at line 44 of file detect-threshold.h.


#define TH_ACTION_REJECT   0x20

Definition at line 47 of file detect-threshold.h.


#define TH_ACTION_SDROP   0x10

Definition at line 46 of file detect-threshold.h.


#define TRACK_BOTH   5 /* used by rate_filter to match detections by both src and dst addresses */

Definition at line 39 of file detect-threshold.h.


#define TRACK_DST   1

Definition at line 35 of file detect-threshold.h.


#define TRACK_EITHER   4

either src or dst: only used by suppress

Definition at line 38 of file detect-threshold.h.


#define TRACK_RULE   3

Definition at line 37 of file detect-threshold.h.


#define TRACK_SRC   2

Definition at line 36 of file detect-threshold.h.


#define TYPE_BOTH   2

Definition at line 29 of file detect-threshold.h.


#define TYPE_DETECTION   4

Definition at line 31 of file detect-threshold.h.


#define TYPE_LIMIT   1

Definition at line 28 of file detect-threshold.h.


#define TYPE_RATE   5

Definition at line 32 of file detect-threshold.h.


#define TYPE_SUPPRESS   6

Definition at line 33 of file detect-threshold.h.


#define TYPE_THRESHOLD   3

Definition at line 30 of file detect-threshold.h.

Typedef Documentation

◆ DetectThresholdData

◆ DetectThresholdEntry

Function Documentation

◆ DetectThresholdDataCopy()

DetectThresholdData* DetectThresholdDataCopy ( DetectThresholdData de)

Make a deep-copy of an extant DetectTHresholdData object.

depointer to DetectThresholdData

Definition at line 292 of file detect-threshold.c.

References DetectThresholdData_::addrs, de, DetectAddressCopy(), DetectAddressHead_::ipv4_head, DetectAddressHead_::ipv6_head, DetectAddress_::next, DetectAddress_::prev, SCCalloc, and unlikely.

Here is the call graph for this function:

◆ DetectThresholdRegister()

void DetectThresholdRegister ( void  )

Registration function for threshold: keyword.

Registration function for threshold: keyword

Definition at line 79 of file detect-threshold.c.

References SigTableElmt_::desc, DETECT_THRESHOLD, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function: