Only record droped flow

This commit is contained in:
root 2020-09-06 18:27:35 +08:00
parent b31d46c727
commit 5c444a5908

View File

@ -854,12 +854,12 @@ static u_int32_t app_filter_hook(unsigned int hook,
if (TEST_MODE())
dump_flow_info(&flow);
app_filter_match(&flow);
af_update_client_app_info(&flow);
if(flow.drop){
#if defined(CONFIG_NF_CONNTRACK_MARK)
ct->mark |= APP_FILTER_DROP_BITS;
#endif
af_update_client_app_info(&flow);
AF_LMT_INFO("##drop appid = %d\n\n\n", flow.app_id);
return NF_DROP;
}