diff options
| author | jixinyi <[email protected]> | 2019-01-04 09:33:23 +0800 |
|---|---|---|
| committer | jixinyi <[email protected]> | 2019-01-04 09:33:23 +0800 |
| commit | 1a058c1e2bcf4d86ba46eedb433dd97f975bb49c (patch) | |
| tree | c83244da7418f003f330c7556a66aa2df1c27f67 /src/ir_mctrl.h | |
| parent | 0e930e6b50916ee73641dfb0e27bbaa893fd005f (diff) | |
整理SNAT和DNAT代码
Diffstat (limited to 'src/ir_mctrl.h')
| -rw-r--r-- | src/ir_mctrl.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ir_mctrl.h b/src/ir_mctrl.h index 3c1a25c..d409d51 100644 --- a/src/ir_mctrl.h +++ b/src/ir_mctrl.h @@ -10,7 +10,7 @@ #define MAX_PORT_LEN 6 #define MAX_PATH_LEN 64 #define MAX_TABLE_NAME_LEN 64 -#define MAX_TIME_LEN 50 +#define MAX_TIME_LEN 30 #define HTABLE_DATA_LEN 512 #define MCTRL_CONF_FILE "./conf/mctrl.conf" @@ -24,13 +24,16 @@ #define DNAT_POLICY_TABLE "IR_DNAT_POLICY" #define SLEEP_TIME 43200 -#define TIME_OUT 1800 -#define MAX_THREAD_NUM 1 +#define TIME_OUT 30 +#define MAX_THREAD_NUM 1 //nominee_type #define STATIC_NOMINEE_INFO 1 #define DYNAMIC_NOMINEE_INFO 2 -#define D_POLICY_INFO 3 +#define DNAT_POLICY_INFO 3 +#define NOMINEE_INFO 4 +#define INTERCEPT_INFO 5 +#define CANDIDATE_INFO 6 //htable flag #define S_OR_D_ORIGIN_FLAG 8 |
