TSG-16028: 修正默认deny策略未发送ICMP和RST包

This commit is contained in:
liuxueli
2023-07-11 15:24:28 +08:00
parent b50d05face
commit db87740104

View File

@@ -660,6 +660,17 @@ static unsigned char do_action_default_xxx(const struct streaminfo *a_stream, st
tmp_user_region.capture.enabled=0;
tmp_user_region.capture.depth=0;
tmp_user_region.method_type=TSG_METHOD_TYPE_DROP;
if(tmp_user_region.deny->drop_para.send_icmp_enable)
{
send_icmp_unreachable(a_stream);
}
if(tmp_user_region.deny->drop_para.send_reset_enable)
{
do_action_reset(a_stream, p_result, protocol);
}
do_action_drop(a_stream, p_result, &tmp_user_region, protocol, user_data);
break;
default: