diff options
| author | jixinyi <[email protected]> | 2019-02-14 15:06:36 +0800 |
|---|---|---|
| committer | jixinyi <[email protected]> | 2019-02-14 15:06:36 +0800 |
| commit | 1ded5b5d951f73462f9452423a27ef582a07ca69 (patch) | |
| tree | a150baa66d46ee8ceceb7a8a11bffe928341d612 /src/mctrl.h | |
| parent | 4768c875928b5ed528af85be5ce6b60421c450ff (diff) | |
增加库表数据统计功能develop
Diffstat (limited to 'src/mctrl.h')
| -rw-r--r-- | src/mctrl.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/mctrl.h b/src/mctrl.h index 3fd62b6..a7cfa8a 100644 --- a/src/mctrl.h +++ b/src/mctrl.h @@ -5,6 +5,7 @@ #include "Maat_rule.h" #include "Maat_command.h" #include "MESA_htable.h" +#include "field_stat2.h" #define MAX_STRING_LEN 64 #define MAX_PORT_LEN 6 @@ -15,6 +16,11 @@ #define MCTRL_CONF_FILE "./conf/mctrl.conf" + +//field_stat2 +#define MCTRL_STAT_PATH "./log/mctrl_field_stat.log" + + //table name #define NOMINEE_TABLE_NAME "IR_NOMINEE_IP" #define INTERCEPT_TABLE_NAME "IR_INTERCEPT_IP" @@ -38,17 +44,28 @@ #define INTERCEPT_FLAG 16 #define CANDIDATE_FLAG 32 -//table_id +/*table_id #define STATIC_NOMINEE_ID 0 #define DYNAMIC_NOMINEE_ID 1 #define DNAT_POLICY_ID 2 #define NOMINEE_ID 3 #define INTERCEPT_ID 4 #define CANDIDATE_ID 5 +*/ +enum FS_STATUS +{ + STATIC_NOMINEE_ID=0, + DYNAMIC_NOMINEE_ID, + DNAT_POLICY_ID, + NOMINEE_ID, + INTERCEPT_ID, + CANDIDATE_ID, + STATUS_MAX_NUM +}; + struct IR_MCTRL_INFO { - int htable_flag; int region_id; int group_id; @@ -81,6 +98,9 @@ struct mctrl_glocal_info Maat_feather_t n_feather; Maat_feather_t i_feather; MESA_htable_handle mctrl_htable_handle; + screen_stat_handle_t stat_handle; + int fs_status_id[STATUS_MAX_NUM]; + int fs_status_num[STATUS_MAX_NUM]; }; |
