FlexRAN: RCconfig_flexran(): only read necessary information
if the FlexRAN agent is disabled, do not read all the data and skip reading of more information
This commit is contained in:
@@ -137,6 +137,9 @@ void RCconfig_flexran()
|
|||||||
sizeof(flexran_agent_info_t), i + 1, num_enbs);
|
sizeof(flexran_agent_info_t), i + 1, num_enbs);
|
||||||
/* if config says "yes", enable Agent, in all other cases it's like "no" */
|
/* if config says "yes", enable Agent, in all other cases it's like "no" */
|
||||||
RC.flexran[i]->enabled = strcasecmp(*(flexranParams[FLEXRAN_ENABLED].strptr), "yes") == 0;
|
RC.flexran[i]->enabled = strcasecmp(*(flexranParams[FLEXRAN_ENABLED].strptr), "yes") == 0;
|
||||||
|
/* if not enabled, simply skip the rest, it is not needed anyway */
|
||||||
|
if (!RC.flexran[i]->enabled)
|
||||||
|
continue;
|
||||||
RC.flexran[i]->interface_name = strdup(*(flexranParams[FLEXRAN_INTERFACE_NAME_IDX].strptr));
|
RC.flexran[i]->interface_name = strdup(*(flexranParams[FLEXRAN_INTERFACE_NAME_IDX].strptr));
|
||||||
//inet_ntop(AF_INET, &(enb_properties->properties[mod_id]->flexran_agent_ipv4_address), in_ip, INET_ADDRSTRLEN);
|
//inet_ntop(AF_INET, &(enb_properties->properties[mod_id]->flexran_agent_ipv4_address), in_ip, INET_ADDRSTRLEN);
|
||||||
RC.flexran[i]->remote_ipv4_addr = strdup(*(flexranParams[FLEXRAN_IPV4_ADDRESS_IDX].strptr));
|
RC.flexran[i]->remote_ipv4_addr = strdup(*(flexranParams[FLEXRAN_IPV4_ADDRESS_IDX].strptr));
|
||||||
|
|||||||
Reference in New Issue
Block a user