summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author刘学利 <[email protected]>2021-08-04 04:13:14 +0000
committer刘学利 <[email protected]>2021-08-04 04:13:14 +0000
commit36397f530d1745f2447effce5679a8a385693fc2 (patch)
tree3086188e0a093a4c3e731c3e362bf98179094d7a
parent7b9a6dbe5d6bcd9b7ae8e2e51090f966c8071e14 (diff)
Feature mirroredv5.1.5
-rw-r--r--src/tsg_entry.cpp6
1 files changed, 6 insertions, 0 deletions
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)
{