diff options
| author | liuxueli <[email protected]> | 2023-07-11 15:24:28 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-07-11 15:24:28 +0800 |
| commit | db87740104c5d9d58600cd6597f858c58c7131a2 (patch) | |
| tree | f25dc73650851cebbc30f579a666fbe3cfba5b87 | |
| parent | b50d05faceb76d29f1b34e62e57e92a496620c40 (diff) | |
TSG-16028: 修正默认deny策略未发送ICMP和RST包v6.0.33
| -rw-r--r-- | src/tsg_action.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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: |
