From db87740104c5d9d58600cd6597f858c58c7131a2 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Tue, 11 Jul 2023 15:24:28 +0800 Subject: [PATCH] =?UTF-8?q?TSG-16028:=20=E4=BF=AE=E6=AD=A3=E9=BB=98?= =?UTF-8?q?=E8=AE=A4deny=E7=AD=96=E7=95=A5=E6=9C=AA=E5=8F=91=E9=80=81ICMP?= =?UTF-8?q?=E5=92=8CRST=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_action.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/tsg_action.cpp b/src/tsg_action.cpp index 6eec3a9..cd0c9f5 100644 --- a/src/tsg_action.cpp +++ b/src/tsg_action.cpp @@ -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: