TSG-14628 TFE适配TCP Option Profile库表的变更
This commit is contained in:
@@ -540,7 +540,7 @@ int traffic_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr
|
||||
char str_policy_id[TFE_SYMBOL_MAX] = {0};
|
||||
char str_profile_id[TFE_SYMBOL_MAX] = {0};
|
||||
|
||||
unsigned int opt_val;
|
||||
uint64_t rule_id;
|
||||
uint16_t opt_out_size;
|
||||
|
||||
struct policy_table_ex_data * policy_ex_data = NULL;
|
||||
@@ -549,14 +549,14 @@ int traffic_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr
|
||||
struct ether_addr c_ether_addr = {};
|
||||
struct ether_addr s_ether_addr = {};
|
||||
|
||||
int ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_POLICY_ID, (unsigned char *) &opt_val, sizeof(opt_val), &opt_out_size);
|
||||
int ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_POLICY_ID, (unsigned char *)&rule_id, sizeof(rule_id), &opt_out_size);
|
||||
if (ret < 0)
|
||||
{
|
||||
TFE_LOG_ERROR(instance->logger, "failed at getting policy id from cmsg, detach the stream.");
|
||||
goto detach;
|
||||
}
|
||||
|
||||
snprintf(str_policy_id, sizeof(str_policy_id), "%u", opt_val);
|
||||
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);
|
||||
if (!policy_ex_data || !policy_ex_data->enable)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user