suricata
detect-xbits.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  DetectXbitsData_
 

Macros

#define DETECT_XBITS_CMD_SET   0
 
#define DETECT_XBITS_CMD_TOGGLE   1
 
#define DETECT_XBITS_CMD_UNSET   2
 
#define DETECT_XBITS_CMD_ISNOTSET   3
 
#define DETECT_XBITS_CMD_ISSET   4
 
#define DETECT_XBITS_CMD_NOALERT   5
 
#define DETECT_XBITS_CMD_MAX   6
 
#define DETECT_XBITS_TRACK_IPSRC   0
 
#define DETECT_XBITS_TRACK_IPDST   1
 
#define DETECT_XBITS_TRACK_IPPAIR   2
 
#define DETECT_XBITS_TRACK_FLOW   3
 
#define DETECT_XBITS_EXPIRE_DEFAULT   30
 

Typedefs

typedef struct DetectXbitsData_ DetectXbitsData
 

Functions

void DetectXbitsRegister (void)
 

Detailed Description

Macro Definition Documentation

#define DETECT_XBITS_CMD_ISNOTSET   3

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

Referenced by DetectXbitMatchHost(), and DetectXbitsRegister().

#define DETECT_XBITS_CMD_ISSET   4

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

Referenced by DetectXbitMatchHost(), and DetectXbitsRegister().

#define DETECT_XBITS_CMD_MAX   6

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

#define DETECT_XBITS_CMD_NOALERT   5

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

Referenced by DetectXbitMatchHost(), and DetectXbitsRegister().

#define DETECT_XBITS_CMD_SET   0

Definition at line 27 of file detect-xbits.h.

Referenced by DetectXbitFree(), DetectXbitMatchHost(), and DetectXbitsRegister().

#define DETECT_XBITS_CMD_TOGGLE   1

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

Referenced by DetectXbitMatchHost(), and DetectXbitsRegister().

#define DETECT_XBITS_CMD_UNSET   2

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

Referenced by DetectXbitMatchHost(), and DetectXbitsRegister().

#define DETECT_XBITS_EXPIRE_DEFAULT   30

Definition at line 40 of file detect-xbits.h.

Referenced by DetectXbitFree(), and DetectXbitsRegister().

#define DETECT_XBITS_TRACK_FLOW   3

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

#define DETECT_XBITS_TRACK_IPDST   1

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

Referenced by DetectHostbitsRegister(), DetectXbitMatchHost(), and DetectXbitsRegister().

#define DETECT_XBITS_TRACK_IPPAIR   2

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

Referenced by DetectXbitFree(), and DetectXbitsRegister().

#define DETECT_XBITS_TRACK_IPSRC   0

Typedef Documentation

Function Documentation

void DetectXbitsRegister ( void  )

Definition at line 65 of file detect-xbits.c.

References DetectXbitsData_::cmd, SigMatch_::ctx, SigTableElmt_::desc, DETECT_SM_LIST_MATCH, DETECT_SM_LIST_POSTMATCH, DETECT_XBITS, DETECT_XBITS_CMD_ISNOTSET, DETECT_XBITS_CMD_ISSET, DETECT_XBITS_CMD_NOALERT, DETECT_XBITS_CMD_SET, DETECT_XBITS_CMD_TOGGLE, DETECT_XBITS_CMD_UNSET, DETECT_XBITS_EXPIRE_DEFAULT, DETECT_XBITS_TRACK_IPDST, DETECT_XBITS_TRACK_IPPAIR, DETECT_XBITS_TRACK_IPSRC, DetectSetupParseRegexes(), DetectXbitFree(), DetectXbitMatchHost(), DOC_URL, DOC_VERSION, Packet_::dst, DetectXbitsData_::expire, Signature_::flags, SigTableElmt_::flags, SigTableElmt_::Free, DetectXbitsData_::idx, IPPairBitIsnotset(), IPPairBitIsset(), IPPairBitSet(), IPPairBitToggle(), IPPairBitUnset(), IPPairGetIPPairFromHash(), IPPairLookupIPPairFromHash(), IPPairRelease(), SigTableElmt_::Match, MAX_SUBSTRINGS, SigTableElmt_::name, PARSE_REGEX, SigTableElmt_::RegisterTests, res, SC_ERR_INVALID_VALUE, SC_ERR_PCRE_GET_SUBSTRING, SC_ERR_PCRE_MATCH, SC_ERR_UNKNOWN_VALUE, SCFree, SCLogDebug, SCLogError, SCMalloc, SigTableElmt_::Setup, SIG_FLAG_NOALERT, SIGMATCH_IPONLY_COMPAT, sigmatch_table, SigMatchAlloc(), SigMatchAppendSMToList(), Packet_::src, DetectXbitsData_::tracker, Packet_::ts, DetectXbitsData_::type, SigMatch_::type, unlikely, SigTableElmt_::url, VAR_TYPE_HOST_BIT, VAR_TYPE_IPPAIR_BIT, VAR_TYPE_NOT_SET, VarNameStoreSetupAdd(), and XBitsRegisterTests().

Referenced by SigTableSetup().

Here is the call graph for this function:

Here is the caller graph for this function: