summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-04-25 10:49:36 +0800
committerluwenpeng <[email protected]>2023-04-28 15:06:28 +0800
commitba64327e2fe1d00254f1914043b060c14c08bff2 (patch)
treecf5d9ef05cb8768572d59c95180117dca4db125e /plugin
parent3523e8a951420ce870425ac13b87b8a3889afa98 (diff)
TSG-14898 TFE适配PXY_INTERCEPT_COMPILE,执行Intercept或No Intercept
Diffstat (limited to 'plugin')
-rw-r--r--plugin/business/traffic-mirror/src/entry.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/business/traffic-mirror/src/entry.cpp b/plugin/business/traffic-mirror/src/entry.cpp
index abe7149..9e5b801 100644
--- a/plugin/business/traffic-mirror/src/entry.cpp
+++ b/plugin/business/traffic-mirror/src/entry.cpp
@@ -144,7 +144,7 @@ success:
goto out;
ignore:
- TFE_LOG_ERROR(instance->logger, "table line in TSG_SECURITY_COMPILE ignored %s: %s", key, table_line);
+ TFE_LOG_ERROR(instance->logger, "table line in PXY_INTERCEPT_COMPILE ignored %s: %s", key, table_line);
goto out;
out:
@@ -471,10 +471,10 @@ int traffic_mirror_init(struct tfe_proxy * proxy)
}
/* REGISTER MAAT FEATHER */
- instance->policy_table_id = maat_get_table_id(instance->maat_feather, "TSG_SECURITY_COMPILE");
+ instance->policy_table_id = maat_get_table_id(instance->maat_feather, "PXY_INTERCEPT_COMPILE");
if (instance->policy_table_id < 0)
{
- TFE_LOG_ERROR(instance->logger, "failed at register table TSG_SECURITY_COMPILE, ret = %d",
+ TFE_LOG_ERROR(instance->logger, "failed at register table PXY_INTERCEPT_COMPILE, ret = %d",
instance->policy_table_id); goto errout;
}
@@ -485,13 +485,13 @@ int traffic_mirror_init(struct tfe_proxy * proxy)
instance->profile_table_id); goto errout;
}
- result = maat_plugin_table_ex_schema_register(instance->maat_feather, "TSG_SECURITY_COMPILE",
+ result = maat_plugin_table_ex_schema_register(instance->maat_feather, "PXY_INTERCEPT_COMPILE",
policy_table_ex_data_new_cb, policy_table_ex_data_free_cb, policy_table_ex_data_dup_cb,
0, instance);
if(result < 0)
{
- TFE_LOG_ERROR(instance->logger, "failed at maat_plugin_table_ex_schema_register(TSG_SECURITY_COMPILE), "
+ TFE_LOG_ERROR(instance->logger, "failed at maat_plugin_table_ex_schema_register(PXY_INTERCEPT_COMPILE), "
"table_id = %d, ret = %d", instance->policy_table_id, result);
goto errout;
}