summaryrefslogtreecommitdiff
path: root/src/ir_mctrl.h
diff options
context:
space:
mode:
authorjixinyi <[email protected]>2019-01-08 15:52:58 +0800
committerjixinyi <[email protected]>2019-01-08 15:52:58 +0800
commitcdc88d025275a3f0a2e4ff8450c79e1d9123284b (patch)
tree4e6e587b3e78fbc6a3750fd4d4dfa1037055405c /src/ir_mctrl.h
parent966504bc48511fedc2c17eb661155b0a5959b134 (diff)
更新说明文档,完善日志和名称V1.3
Diffstat (limited to 'src/ir_mctrl.h')
-rw-r--r--src/ir_mctrl.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ir_mctrl.h b/src/ir_mctrl.h
index ac60fcc..6a42a98 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 30
+#define MAX_TIME_LEN 40
#define HTABLE_DATA_LEN 512
#define MCTRL_CONF_FILE "./conf/mctrl.conf"
@@ -24,11 +24,12 @@
#define CANDIDATE_TABLE_NAME "IR_CANDIDATE_IP"
#define SLEEP_TIME 43200
-#define TIME_OUT 30
-#define MAX_THREAD_NUM 1
+#define TIME_OUT 1800
+#define MAX_THREAD_NUM 1
#define DNAT_NUMBER 500000000
#define SNAT_DYNAMIC_NUMBER 1000000000
+
//table flag
#define STATIC_NOMINEE_FLAG 1
#define DYNAMIC_NOMINEE_FLAG 2
@@ -64,14 +65,14 @@ struct IR_MCTRL_INFO
int version;
};
-struct mctrl_glocal_info
+struct MCTRL_GLOCAL_INFO
{
void *logger_handle;
Maat_feather_t d_feather;
Maat_feather_t s_feather;
Maat_feather_t n_feather;
Maat_feather_t i_feather;
- MESA_htable_handle s_d_htable;
+ MESA_htable_handle mctrl_htable_handle;
int update_type_s;
int update_type_d;
int update_type_dp;