summaryrefslogtreecommitdiff
path: root/plugin/business/traffic-mirror/src/entry.cpp
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-09-26 15:21:08 +0800
committerluwenpeng <[email protected]>2024-09-26 15:21:08 +0800
commitbb9f4eecc1b8a4ed4dd592f14196c5719f8454ba (patch)
tree5970aa6ca8b5bcb6cf3f27a2aca34d8d62fcea23 /plugin/business/traffic-mirror/src/entry.cpp
parent5d3ee62d23253218243c9be831ffa084add3ef80 (diff)
change maat_plugin_table_get_ex_data() key type from uuid_t to uuid string
Diffstat (limited to 'plugin/business/traffic-mirror/src/entry.cpp')
-rw-r--r--plugin/business/traffic-mirror/src/entry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/business/traffic-mirror/src/entry.cpp b/plugin/business/traffic-mirror/src/entry.cpp
index c5ff524..c10eac5 100644
--- a/plugin/business/traffic-mirror/src/entry.cpp
+++ b/plugin/business/traffic-mirror/src/entry.cpp
@@ -583,7 +583,7 @@ int traffic_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr
}
uuid_unparse(rule_uuid, rule_uuid_str);
- policy_ex_data = (struct policy_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, "PXY_INTERCEPT_RULE", (const char *)&rule_uuid, sizeof(uuid_t));
+ policy_ex_data = (struct policy_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, "PXY_INTERCEPT_RULE", (const char *)rule_uuid_str, strlen(rule_uuid_str));
if (!policy_ex_data || !policy_ex_data->enable)
{
goto detach;
@@ -610,7 +610,7 @@ int traffic_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr
if (policy_ex_data->is_profile_set)
{
uuid_unparse(policy_ex_data->profile_uuid, profile_uuid_str);
- profile_ex_data = (struct profile_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, "TSG_PROFILE_TRAFFIC_MIRROR", (const char *)&policy_ex_data->profile_uuid, sizeof(uuid_t));
+ profile_ex_data = (struct profile_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, "TSG_PROFILE_TRAFFIC_MIRROR", (const char *)profile_uuid_str, strlen(profile_uuid_str));
if (!profile_ex_data)
{
TFE_LOG_ERROR(instance->logger, "failed at getting policy %s's profile, profile id = %s, "