diff options
| author | luwenpeng <[email protected]> | 2023-06-06 10:39:01 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2023-06-08 16:44:34 +0800 |
| commit | db5530aa568d66eec2caf18eed067e1ccceb197d (patch) | |
| tree | 67b7b9140b7146b5f8eeada4cf344cef33bf90d5 /plugin/business/traffic-mirror/src/entry.cpp | |
| parent | 396f8426f9ddf83c7d5f483fef20ab7a92bd7fac (diff) | |
TSG-15381 TFE适配MAAT4的maat_plugin_table_get_ex_data()接口变更
Diffstat (limited to 'plugin/business/traffic-mirror/src/entry.cpp')
| -rw-r--r-- | plugin/business/traffic-mirror/src/entry.cpp | 4 |
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 bbf4ee0..262a76e 100644 --- a/plugin/business/traffic-mirror/src/entry.cpp +++ b/plugin/business/traffic-mirror/src/entry.cpp @@ -547,7 +547,7 @@ int traffic_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr } snprintf(str_policy_id, sizeof(str_policy_id), "%lu", rule_id); - policy_ex_data = (struct policy_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, instance->policy_table_id, str_policy_id); + policy_ex_data = (struct policy_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, instance->policy_table_id, str_policy_id, strlen(str_policy_id)); if (!policy_ex_data || !policy_ex_data->enable) { goto detach; @@ -574,7 +574,7 @@ int traffic_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr if (policy_ex_data->is_profile_set) { snprintf(str_profile_id, sizeof(str_policy_id), "%u", policy_ex_data->profile_id); - profile_ex_data = (struct profile_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, instance->profile_table_id, str_profile_id); + profile_ex_data = (struct profile_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, instance->profile_table_id, str_profile_id, strlen(str_profile_id)); if (!profile_ex_data) { TFE_LOG_ERROR(instance->logger, "failed at getting policy %s's profile, profile id = %s, " |
