From 36397f530d1745f2447effce5679a8a385693fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=AD=A6=E5=88=A9?= Date: Wed, 4 Aug 2021 04:13:14 +0000 Subject: [PATCH] Feature mirrored --- src/tsg_entry.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 31330db..e8ed01b 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -1472,6 +1472,12 @@ static unsigned char tsg_master_all_entry(const struct streaminfo *a_stream, uns struct Maat_rule_t result[MAX_RESULT_NUM]={0}; struct mirrored_vlan vlan[MAX_RESULT_NUM]={0}; struct tcpall_context *context=(struct tcpall_context *)(*pme); + + if(context==NULL) + { + context=(struct tcpall_context *)get_struct_project(a_stream, g_tsg_para.tcpall_project_id); + *pme=(void *)context; + } switch(stream_state) {