From d265be968799327ac0d20748eba98390c22f72ac Mon Sep 17 00:00:00 2001 From: liuxueli Date: Mon, 8 Mar 2021 11:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9F=BA=E7=A1=80=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E7=AE=A1=E6=8E=A7RST=E5=8A=A8=E4=BD=9C=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E7=94=A8MESA=5Frst=5Ftcp=E5=87=BD=E6=95=B0=E9=9C=80=E6=8C=87?= =?UTF-8?q?=E5=AE=9ARST=E5=8C=85=E6=96=B9=E5=90=91=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=87=8D=E6=9E=84=E5=90=8EFQDN=E5=88=86=E7=B1=BB=E4=B8=8D?= =?UTF-8?q?=E5=91=BD=E4=B8=AD=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.cpp | 3 ++- src/tsg_rule.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 327df4f..a546dfd 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -1165,7 +1165,8 @@ extern "C" char TSG_MASTER_TCP_ENTRY(struct streaminfo *a_tcp, void **pme, int t rst_paras.signature_seed2=13; rst_paras.th_flags=4; rst_paras.__pad_no_use=0; - MESA_rst_tcp(a_tcp, &rst_paras, sizeof(rst_paras)); + rst_paras.dir=DIR_DOUBLE; + ret=MESA_rst_tcp(a_tcp, &rst_paras, sizeof(rst_paras)); opt_value=1; MESA_set_stream_opt(a_tcp, MSO_TCP_RST_REMEDY, (void *)&opt_value, sizeof(opt_value)); diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp index 0b36906..361faae 100644 --- a/src/tsg_rule.cpp +++ b/src/tsg_rule.cpp @@ -1585,8 +1585,8 @@ int tsg_scan_shared_policy(Maat_feather_t maat_feather, struct streaminfo *a_str ); } - ret=project_req_add_struct(a_stream, g_tsg_para.internal_project_id, (const void *)attribute_label); - if(ret>0) + attribute_label=(struct _session_attribute_label_t *)project_req_get_struct(a_stream, g_tsg_para.internal_project_id); + if(attribute_label!=NULL) { attribute_label->fqdn_category_id_num=tsg_get_fqdn_category_id(g_tsg_maat_feather, identify_info->domain,