From 57e21ab6d01922c9fb50e6dde1d4f7f3c212c21c Mon Sep 17 00:00:00 2001 From: fengweihao Date: Thu, 6 Apr 2023 18:37:02 +0800 Subject: [PATCH] =?UTF-8?q?TSG-14553=20=E7=AD=96=E7=95=A5=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=90=8C=E6=9D=A1=E4=BB=B6=E4=B8=8BDeny=E9=AB=98?= =?UTF-8?q?=E4=BA=8EShunt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/verify_matcher.cpp | 1 + platform/src/verify_policy.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/platform/src/verify_matcher.cpp b/platform/src/verify_matcher.cpp index c38eed6..83d39a4 100644 --- a/platform/src/verify_matcher.cpp +++ b/platform/src/verify_matcher.cpp @@ -223,6 +223,7 @@ void __policy_action_weight_init() policy_action_weight[PG_ACTION_MANIPULATE] = 3; policy_action_weight[PG_ACTION_REJECT] = 4; policy_action_weight[PG_ACTION_WHITELIST] = 5; + policy_action_weight[PX_ACTION_SHUNT] = 6; } static inline int action_cmp(enum policy_action a1, enum policy_action a2) diff --git a/platform/src/verify_policy.cpp b/platform/src/verify_policy.cpp index 7f5d15a..45a8957 100644 --- a/platform/src/verify_policy.cpp +++ b/platform/src/verify_policy.cpp @@ -395,6 +395,7 @@ cJSON *get_query_from_request(const char *data, int thread_id) { verify_policy->vsys_id = item->valueint; } + mesa_runtime_log(RLOG_LV_DEBUG, "[I] vsysId= %d", verify_policy->vsys_id); item = cJSON_GetObjectItem(subitem,"verifySession"); if(item == NULL || item->type!=cJSON_Object)