📄 cons_def.h
字号:
/* cons_def.h
writing by qsc @ 2001-06-14
for GUI develop in Visual C++
constants for develop GUI applications. It is used for setting firewall_module rules_setting
*/
//Direct 控制方向
#define DT_IN 0x01
#define DT_OUT 0x02
#define DT_INOUT 0x03
//Operator 运算子
#define OP_GT 0x10 //">"
#define OP_LT 0x11 //"<"
#define OP_EQ 0x12 //"="
#define OP_NE 0x13 //"<>"
#define OP_BW 0x14 //"<?<"
//Firewall status
#define FWS_DENYALL 0x20 //Deny all packets
#define FWS_ALLOWALL 0x21 //Allow all packets
#define FWS_NORMAL 0x22 //Apply rules
//Mode规则策略模式
#define RM_DENY 0x30 //除了允许都禁止
#define RM_ALLOW 0x31 //除了禁止都允许
//协议类型定义
#define PT_TCP 0x06
#define PT_UDP 0x11
#define PT_ICMP 0x01
#define PT_RESTIP 0xFE
#define PT_NOTIP 0xFF
//define action
#define DENY 0x00
#define ALLOW 0x01
#define NOT_MATCH 0x03
//define TAG
#ifndef TAG
#define TAG 'ImPa'
#endif
//define event type
#define E_LOG 0x41
#define E_ALARM 0x42
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -