summaryrefslogtreecommitdiff
path: root/src/tsg_rule.cpp
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2021-12-06 11:37:05 +0300
committerliuxueli <[email protected]>2021-12-06 11:37:05 +0300
commitf2ebecc67822304d7ecad41e64f808008bb4cc45 (patch)
tree6f116d624a256542165a695391e7c791c01132d9 /src/tsg_rule.cpp
parentf98acd814f533e71577c0d1d34837554d48a7531 (diff)
TSG-8795: 适配Sub Action(method)参数rst修改为resetv5.4.21
Diffstat (limited to 'src/tsg_rule.cpp')
-rw-r--r--src/tsg_rule.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp
index 0103580..0553a36 100644
--- a/src/tsg_rule.cpp
+++ b/src/tsg_rule.cpp
@@ -37,6 +37,7 @@ const struct _str2index method2index[TSG_METHOD_TYPE_MAX]={ {TSG_METHOD_TYPE_UNK
{TSG_METHOD_TYPE_DROP, 4, (char *)"drop"},
{TSG_METHOD_TYPE_REDIRECTION, 8, (char *)"redirect"},
{TSG_METHOD_TYPE_BLOCK, 5, (char *)"block"},
+ {TSG_METHOD_TYPE_RESET, 5, (char *)"reset"},
{TSG_METHOD_TYPE_RESET, 3, (char *)"rst"},
{TSG_METHOD_TYPE_ALERT, 5, (char *)"alert"},
{TSG_METHOD_TYPE_RATE_LIMIT, 10, (char *)"rate_limit"},
@@ -956,6 +957,7 @@ static struct compile_user_region *parse_deny_user_region(cJSON *object)
user_region->drop_para=(struct drop_user_para *)calloc(1, sizeof(struct drop_user_para));
get_integer_from_json(object, "send_icmp_unreachable", &(user_region->drop_para->send_icmp_unreachable_enable));
break;
+ case TSG_METHOD_TYPE_RST:
case TSG_METHOD_TYPE_RESET:
break;
case TSG_METHOD_TYPE_TAMPER: