Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

rules.h File Reference

#include "event.h"
#include "decode.h"
#include "signature.h"
#include "parser/IpAddrSet.h"
#include "spo_plugbase.h"

Go to the source code of this file.

Defines

#define RULE_LOG   0
#define RULE_PASS   1
#define RULE_ALERT   2
#define RULE_VAR   3
#define RULE_INCLUDE   4
#define RULE_PREPROCESS   5
#define RULE_OUTPUT   6
#define RULE_ACTIVATE   7
#define RULE_DYNAMIC   8
#define RULE_CONFIG   9
#define RULE_DECLARE   10
#define RULE_THRESHOLD   11
#define RULE_SUPPRESS   12
#define RULE_UNKNOWN   13
#define RULE_DROP   14
#define RULE_SDROP   15
#define RULE_REJECT   16
#define RULE_REJECTBOTH   17
#define RULE_REJECTSRC   18
#define RULE_REJECTDST   19
#define RULE_REINJECT   20
#define EXCEPT_SRC_IP   0x01
#define EXCEPT_DST_IP   0x02
#define ANY_SRC_PORT   0x04
#define ANY_DST_PORT   0x08
#define ANY_FLAGS   0x10
#define EXCEPT_SRC_PORT   0x20
#define EXCEPT_DST_PORT   0x40
#define BIDIRECTIONAL   0x80
#define ANY_SRC_IP   0x100
#define ANY_DST_IP   0x200
#define EXCEPT_IP   0x01
#define R_FIN   0x01
#define R_SYN   0x02
#define R_RST   0x04
#define R_PSH   0x08
#define R_ACK   0x10
#define R_URG   0x20
#define R_RES2   0x40
#define R_RES1   0x80
#define MODE_EXIT_ON_MATCH   0
#define MODE_FULL_SEARCH   1
#define CHECK_SRC   0x01
#define CHECK_DST   0x02
#define INVERSE   0x04
#define SESSION_PRINTABLE   1
#define SESSION_ALL   2
#define RESP_RST_SND   0x01
#define RESP_RST_RCV   0x02
#define RESP_BAD_NET   0x04
#define RESP_BAD_HOST   0x08
#define RESP_BAD_PORT   0x10
#define MODE_EXIT_ON_MATCH   0
#define MODE_FULL_SEARCH   1
#define SRC   0
#define DST   1
#define PARSERULE_SIZE   8192
#define VAR_STATIC   1

Typedefs

typedef _RuleFpList RuleFpList
typedef _OptFpList OptFpList
typedef _RspFpList RspFpList
typedef _TagData TagData
typedef _OptTreeNode OptTreeNode
typedef _ActivateList ActivateList
typedef _RuleTreeNode RuleTreeNode
typedef _ListHead ListHead
typedef _RuleListNode RuleListNode


Define Documentation

#define ANY_DST_IP   0x200
 

Definition at line 73 of file rules.h.

Referenced by AddrToFunc(), and ProcessIP().

#define ANY_DST_PORT   0x08
 

Definition at line 67 of file rules.h.

Referenced by CheckAddrPort(), DumpChain(), fpCreateFastPacketDetection(), ParseRule(), PortscanPreprocFunction(), and SetupRTNFuncList().

#define ANY_FLAGS   0x10
 

Definition at line 68 of file rules.h.

#define ANY_SRC_IP   0x100
 

Definition at line 72 of file rules.h.

Referenced by AddrToFunc(), and ProcessIP().

#define ANY_SRC_PORT   0x04
 

Definition at line 66 of file rules.h.

Referenced by CheckAddrPort(), DumpChain(), fpCreateFastPacketDetection(), IsServer(), ParseRule(), ScanParseIp(), and SetupRTNFuncList().

#define BIDIRECTIONAL   0x80
 

Definition at line 71 of file rules.h.

Referenced by fpCreateFastPacketDetection(), fpEvalRTN(), fpEvalRTNSW(), ParseRule(), and SetupRTNFuncList().

#define CHECK_DST   0x02
 

Definition at line 90 of file rules.h.

Referenced by CheckBidirectional(), and PortscanPreprocFunction().

#define CHECK_SRC   0x01
 

Definition at line 89 of file rules.h.

Referenced by CheckAddrPort(), CheckBidirectional(), IsIgnored(), and IsServer().

#define DST   1
 

Definition at line 106 of file rules.h.

Referenced by AddrToFunc(), AllocAddrNode(), ParseRule(), PortToFunc(), ProcessIP(), and SetupRTNFuncList().

#define EXCEPT_DST_IP   0x02
 

Definition at line 65 of file rules.h.

Referenced by CheckAddrPort(), CheckDstIP(), DumpChain(), PortscanParseIP(), and ProcessIP().

#define EXCEPT_DST_PORT   0x40
 

Definition at line 70 of file rules.h.

Referenced by CheckAddrPort(), DumpChain(), fpEvalRTN(), fpEvalRTNSW(), ParseRule(), ProcessHeadNode(), and SetupRTNFuncList().

#define EXCEPT_IP   0x01
 

Definition at line 75 of file rules.h.

#define EXCEPT_SRC_IP   0x01
 

Definition at line 64 of file rules.h.

Referenced by CheckAddrPort(), CheckSrcIP(), DumpChain(), ProcessIP(), and ScanParseIp().

#define EXCEPT_SRC_PORT   0x20
 

Definition at line 69 of file rules.h.

Referenced by CheckAddrPort(), DumpChain(), ParseRule(), ScanParseIp(), and SetupRTNFuncList().

#define INVERSE   0x04
 

Definition at line 91 of file rules.h.

Referenced by CheckAddrPort(), and CheckBidirectional().

#define MODE_EXIT_ON_MATCH   0
 

Definition at line 102 of file rules.h.

#define MODE_EXIT_ON_MATCH   0
 

Definition at line 102 of file rules.h.

#define MODE_FULL_SEARCH   1
 

Definition at line 103 of file rules.h.

#define MODE_FULL_SEARCH   1
 

Definition at line 103 of file rules.h.

#define PARSERULE_SIZE   8192
 

Definition at line 109 of file rules.h.

Referenced by ExpandVars(), ParseRule(), and ParseRulesFile().

#define R_ACK   0x10
 

Definition at line 81 of file rules.h.

Referenced by CheckTCPFlags(), and ParseTCPFlags().

#define R_FIN   0x01
 

Definition at line 77 of file rules.h.

Referenced by CheckTCPFlags(), and ParseTCPFlags().

#define R_PSH   0x08
 

Definition at line 80 of file rules.h.

Referenced by CheckTCPFlags(), and ParseTCPFlags().

#define R_RES1   0x80
 

Definition at line 84 of file rules.h.

Referenced by CheckTCPFlags(), and ParseTCPFlags().

#define R_RES2   0x40
 

Definition at line 83 of file rules.h.

Referenced by CheckTCPFlags(), and ParseTCPFlags().

#define R_RST   0x04
 

Definition at line 79 of file rules.h.

Referenced by CheckTCPFlags(), and ParseTCPFlags().

#define R_SYN   0x02
 

Definition at line 78 of file rules.h.

Referenced by CheckTCPFlags(), and ParseTCPFlags().

#define R_URG   0x20
 

Definition at line 82 of file rules.h.

Referenced by CheckTCPFlags(), and ParseTCPFlags().

#define RESP_BAD_HOST   0x08
 

Definition at line 99 of file rules.h.

#define RESP_BAD_NET   0x04
 

Definition at line 98 of file rules.h.

#define RESP_BAD_PORT   0x10
 

Definition at line 100 of file rules.h.

#define RESP_RST_RCV   0x02
 

Definition at line 97 of file rules.h.

#define RESP_RST_SND   0x01
 

Definition at line 96 of file rules.h.

#define RULE_ACTIVATE   7
 

Definition at line 49 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), ParseRuleTypeDeclaration(), and RuleType().

#define RULE_ALERT   2
 

Definition at line 44 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), ParseRuleTypeDeclaration(), and RuleType().

#define RULE_CONFIG   9
 

Definition at line 51 of file rules.h.

Referenced by ParseRule(), and RuleType().

#define RULE_DECLARE   10
 

Definition at line 52 of file rules.h.

Referenced by ParseRule(), and RuleType().

#define RULE_DROP   14
 

Definition at line 56 of file rules.h.

Referenced by CreateDefaultRules(), fpEvalOTN(), fpLogEvent(), ParseRule(), and RuleType().

#define RULE_DYNAMIC   8
 

Definition at line 50 of file rules.h.

Referenced by CreateDefaultRules(), fpEvalOTN(), fpEvalRTN(), fpEvalRTNSW(), fpLogEvent(), ParseRule(), ParseRuleOptions(), ParseRuleTypeDeclaration(), and RuleType().

#define RULE_INCLUDE   4
 

Definition at line 46 of file rules.h.

Referenced by ParseRule(), and RuleType().

#define RULE_LOG   0
 

Definition at line 42 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), ParseRuleTypeDeclaration(), and RuleType().

#define RULE_OUTPUT   6
 

Definition at line 48 of file rules.h.

Referenced by ParseRule(), ParseRuleTypeDeclaration(), and RuleType().

#define RULE_PASS   1
 

Definition at line 43 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), ParseRuleTypeDeclaration(), and RuleType().

#define RULE_PREPROCESS   5
 

Definition at line 47 of file rules.h.

Referenced by ParseRule(), and RuleType().

#define RULE_REINJECT   20
 

Definition at line 62 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), and RuleType().

#define RULE_REJECT   16
 

Definition at line 58 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), and RuleType().

#define RULE_REJECTBOTH   17
 

Definition at line 59 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), and RuleType().

#define RULE_REJECTDST   19
 

Definition at line 61 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), and RuleType().

#define RULE_REJECTSRC   18
 

Definition at line 60 of file rules.h.

Referenced by CreateDefaultRules(), fpLogEvent(), ParseRule(), and RuleType().

#define RULE_SDROP   15
 

Definition at line 57 of file rules.h.

Referenced by CreateDefaultRules(), fpEvalOTN(), fpLogEvent(), ParseRule(), and RuleType().

#define RULE_SUPPRESS   12
 

Definition at line 54 of file rules.h.

Referenced by ParseRule(), and RuleType().

#define RULE_THRESHOLD   11
 

Definition at line 53 of file rules.h.

Referenced by ParseRule(), and RuleType().

#define RULE_UNKNOWN   13
 

Definition at line 55 of file rules.h.

Referenced by checkKeyword(), ParseRule(), and RuleType().

#define RULE_VAR   3
 

Definition at line 45 of file rules.h.

Referenced by ParseRule(), and RuleType().

#define SESSION_ALL   2
 

Definition at line 94 of file rules.h.

#define SESSION_PRINTABLE   1
 

Definition at line 93 of file rules.h.

#define SRC   0
 

Definition at line 105 of file rules.h.

Referenced by AddrToFunc(), AllocAddrNode(), ParseRule(), PortToFunc(), ProcessIP(), and SetupRTNFuncList().

#define VAR_STATIC   1
 

Definition at line 305 of file rules.h.

Referenced by ParseCmdLine(), and VarDefine().


Typedef Documentation

typedef struct _ActivateList ActivateList
 

typedef struct _ListHead ListHead
 

typedef struct _OptFpList OptFpList
 

typedef struct _OptTreeNode OptTreeNode
 

typedef struct _RspFpList RspFpList
 

typedef struct _RuleFpList RuleFpList
 

typedef struct _RuleListNode RuleListNode
 

typedef struct _RuleTreeNode RuleTreeNode
 

typedef struct _TagData TagData
 


Generated on Sun May 14 14:51:26 2006 by  doxygen 1.4.2