From 43a9b6474e369e061a856fe6297f696427b38d29 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Thu, 22 Feb 2024 17:18:48 +0800 Subject: [PATCH] =?UTF-8?q?TSG-19435=20=E4=BF=AE=E5=A4=8DManipulation?= =?UTF-8?q?=E4=BB=A5Port=E4=BD=9C=E4=B8=BACondition=E6=97=B6,=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E6=97=A0=E6=B3=95=E5=91=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/tfe_scan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/tfe_scan.cpp b/common/src/tfe_scan.cpp index 53df5c7..2f22ac4 100644 --- a/common/src/tfe_scan.cpp +++ b/common/src/tfe_scan.cpp @@ -373,7 +373,7 @@ int tfe_scan_port(const struct tfe_stream *stream, long long *result, struct maa int hit_cnt_port = 0; size_t n_hit_result = 0; - scan_ret=maat_scan_integer((struct maat *)tfe_bussiness_resouce_get(STATIC_MAAT), tfe_bussiness_tableid_get(PXY_CTRL_SOURCE_PORT), source, + scan_ret=maat_scan_integer((struct maat *)tfe_bussiness_resouce_get(STATIC_MAAT), tfe_bussiness_tableid_get(PXY_CTRL_SOURCE_PORT), ntohs(source), result+hit_cnt+hit_cnt_port, MAX_SCAN_RESULT-hit_cnt-hit_cnt_port, &n_hit_result, scan_mid); if(scan_ret == MAAT_SCAN_HIT) { @@ -391,7 +391,7 @@ int tfe_scan_port(const struct tfe_stream *stream, long long *result, struct maa hit_cnt_port+=scan_ret; } - scan_ret=maat_scan_integer((struct maat *)tfe_bussiness_resouce_get(STATIC_MAAT), tfe_bussiness_tableid_get(PXY_CTRL_DESTINATION_PORT), dest, + scan_ret=maat_scan_integer((struct maat *)tfe_bussiness_resouce_get(STATIC_MAAT), tfe_bussiness_tableid_get(PXY_CTRL_DESTINATION_PORT), ntohs(dest), result+hit_cnt+hit_cnt_port, MAX_SCAN_RESULT-hit_cnt-hit_cnt_port, &n_hit_result, scan_mid); if(scan_ret == MAAT_SCAN_HIT) {