diff options
| author | liuxueli <[email protected]> | 2023-07-20 10:38:30 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-07-20 10:38:30 +0800 |
| commit | 8c94311e8691791a06bdbbac761a0b6d4fa95cb7 (patch) | |
| tree | 94dff625ea155fea69875d63f753c39d2ee665e8 | |
| parent | 47695a769f45a2426f96829c578357b0c7d15915 (diff) | |
增加是否在TCPALL入口扫描IP地址相关属性的开关
| -rw-r--r-- | src/tsg_entry.cpp | 7 | ||||
| -rw-r--r-- | src/tsg_variable.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 96837d5..5109a21 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -2250,6 +2250,11 @@ static unsigned char tsg_master_all_entry(const struct streaminfo *a_stream, uns srt_action_context->default_policy_after_n_packets=get_default_para(a_stream); } + if(g_tsg_para.scan_in_pkt_state==0) + { + return state; + } + struct maat_state *scan_mid=maat_state_new(g_tsg_maat_feather, thread_seq); size_t n_matched_rules=MAX_MATCHED_RULES_NUM; struct maat_rule matched_rules[MAX_MATCHED_RULES_NUM]; @@ -2537,6 +2542,8 @@ extern "C" int TSG_MASTER_INIT() MESA_load_profile_int_def(tsg_conffile, "SYSTEM", "SHAPING_SID", &g_tsg_para.shaping_sid, 0); MESA_load_profile_int_def(tsg_conffile, "SYSTEM", "PROXY_SID", &g_tsg_para.intercept_sid, 0); + MESA_load_profile_int_def(tsg_conffile, "SYSTEM", "SCAN_IN_PACKET_STATE", &g_tsg_para.scan_in_pkt_state, 1); + ret=MESA_load_profile_int_def(tsg_conffile, "SYSTEM", "DEVICE_SEQ_IN_DATA_CENTER", &g_tsg_para.device_seq_in_dc, 0); if(ret<0) { diff --git a/src/tsg_variable.h b/src/tsg_variable.h index 71c93c0..9a9d31d 100644 --- a/src/tsg_variable.h +++ b/src/tsg_variable.h @@ -72,6 +72,7 @@ struct tsg_rt_para int shaping_sid; int intercept_sid; int send_resetall; + int scan_in_pkt_state; int app_metric_update_interval_ms; enum DEPLOY_MODE deploy_mode; int scan_time_interval; |
