summaryrefslogtreecommitdiff
path: root/test/src/gtest_rule.cpp
diff options
context:
space:
mode:
author刘学利 <[email protected]>2023-02-09 07:14:55 +0000
committer刘学利 <[email protected]>2023-02-09 07:14:55 +0000
commit1332eedb94c7f26d17f2bdb919f7d3eb290124b8 (patch)
treedc30bb48545dfb3df117d718b3fd7b93c70fb7f1 /test/src/gtest_rule.cpp
parent6756fcdf7a96cc56f3fb54241e5f3088ef2f162d (diff)
TSG-13584: Firewall的安全日志依赖session record日志,修复TRAFFIC_SHAPING_PROFILE表是否生效字段编号定义错误,使用cppcheck进行代码检查v5.10.1
Diffstat (limited to 'test/src/gtest_rule.cpp')
-rw-r--r--test/src/gtest_rule.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/src/gtest_rule.cpp b/test/src/gtest_rule.cpp
index 9b346ab..3394a62 100644
--- a/test/src/gtest_rule.cpp
+++ b/test/src/gtest_rule.cpp
@@ -8,7 +8,7 @@
#include <gtest/gtest.h>
g_tsg_para_t g_tsg_para;
-id2field_t g_tsg_proto_name2id[PROTO_MAX]={{PROTO_UNKONWN, 0, "unknown"},
+struct id2field g_tsg_proto_name2id[PROTO_MAX]={{PROTO_UNKONWN, 0, "unknown"},
{PROTO_IPv4, 0, "IPV4"},
{PROTO_IPv6, 0, "IPV6"},
{PROTO_TCP, 0, "TCP"},
@@ -35,13 +35,19 @@ id2field_t g_tsg_proto_name2id[PROTO_MAX]={{PROTO_UNKONWN, 0, "unknown"},
{PROTO_DTLS, 0, "DTLS"}
};
-unsigned int tsg_l7_protocol_name2id(const char *l7_protocol_name)
+int app_identify_result_cb(const struct streaminfo *a_stream, int bridge_id, void *data)
{
return 0;
}
-void free_policy_label(int thread_seq, void *project_req_value)
+int session_flags_identify_result_cb(const struct streaminfo *a_stream, int bridge_id, void *data)
{
+ return 0;
+}
+
+unsigned int tsg_l7_protocol_name2id(const char *l7_protocol_name)
+{
+ return 0;
}
void set_session_attribute_label(const struct streaminfo *a_stream, enum TSG_ATTRIBUTE_TYPE type, void *value, int value_len, int thread_seq)