From c0d8d5dd2e7d8cb4067b1111d9d8e6e58e70d7b2 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Tue, 15 Feb 2022 16:39:13 +0800 Subject: [PATCH] =?UTF-8?q?TSG-9521:=20=E4=BF=AE=E5=A4=8D=E6=89=A7?= =?UTF-8?q?=E8=A1=8CDeny=20Action=E6=97=B6=E9=94=99=E8=AF=AF=E8=B0=83?= =?UTF-8?q?=E7=94=A8do=5Faction=5Ftamper=E5=87=BD=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E8=B0=83=E7=94=A8send=5Ficmp=5Funreachable=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_action.cpp | 2 +- src/tsg_icmp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tsg_action.cpp b/src/tsg_action.cpp index 5be0500..d5017fc 100644 --- a/src/tsg_action.cpp +++ b/src/tsg_action.cpp @@ -851,7 +851,7 @@ static unsigned char tsg_do_deny_action(const struct streaminfo *a_stream, struc local_state=0; if(user_region->deny->app_para.send_icmp_enable==1) { - local_state|=do_action_tamper(a_stream, p_result, user_region, protocol, user_data); + local_state|=send_icmp_unreachable(a_stream); } if(user_region->deny->app_para.send_reset_enable==1) diff --git a/src/tsg_icmp.cpp b/src/tsg_icmp.cpp index f03f333..4ef118b 100644 --- a/src/tsg_icmp.cpp +++ b/src/tsg_icmp.cpp @@ -350,6 +350,6 @@ unsigned char send_icmp_unreachable(const struct streaminfo *a_stream) __FUNCTION__, debug_buf); - return STATE_DROPPKT; + return STATE_DROPME|STATE_DROPPKT;; }