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;