TSG-8098,TSG-8099,修改icmp_unreachable和tamper_action

This commit is contained in:
yangwenlin
2021-11-03 17:11:28 +08:00
committed by yangwei
parent 19ece7f455
commit aed90643c8
3 changed files with 65 additions and 127 deletions

View File

@@ -552,9 +552,11 @@ static unsigned char do_action_reset(const struct streaminfo *a_stream, Maat_rul
static unsigned char do_action_drop(const struct streaminfo *a_stream, Maat_rule_t *p_result, struct compile_user_region *user_region, tsg_protocol_t protocol, const void *a_packet)
{
if(user_region-> drop_para != NULL){
if(user_region->drop_para->send_icmp_unreachable_enable){
send_icmp_unreachable(a_stream, a_packet);
if(user_region != NULL){
if(user_region->drop_para != NULL){
if(user_region->drop_para->send_icmp_unreachable_enable){
send_icmp_unreachable(a_stream, a_packet);
}
}
}