Commit 26f9096c authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Add UE MTU as an option from config file

parent 58fce642
......@@ -55,7 +55,7 @@ SMF =
IPV4_LIST = (
{RANGE = "12.1.1.2 - 12.1.1.128";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{RANGE = "12.1.1.129 - 12.1.1.224";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{RANGE = "10.10.10.2 - 10.10.10.253";} # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{RANGE = "10.10.10.2 - 10.10.10.253";} # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
);
IPV6_LIST = (
......@@ -77,8 +77,10 @@ SMF =
DEFAULT_DNS_SEC_IPV4_ADDRESS = "@DEFAULT_DNS_SEC_IPV4_ADDRESS@"; # YOUR DNS CONFIG HERE
DEFAULT_DNS_IPV6_ADDRESS = "2001:4860:4860::8888"; # YOUR DNS CONFIG HERE
DEFAULT_DNS_SEC_IPV6_ADDRESS = "2001:4860:4860::8844"; # YOUR DNS CONFIG HERE
#Default UE MTU
UE_MTU = 1358;
# SUPPORT FEATURES
SUPPORT_FEATURES:
{
......
......@@ -553,6 +553,7 @@ int smf_config::load(const string& config_file) {
astring.c_str());
}
// UE MTU
smf_cfg.lookupValue(SMF_CONFIG_STRING_UE_MTU, ue_mtu);
// Support features
......@@ -986,6 +987,7 @@ void smf_config::display() {
Logger::smf_app().info(
" Scheduling prio .....: %d",
itti.async_cmd_sched_params.sched_priority);
Logger::smf_app().info("- " SMF_CONFIG_STRING_IP_ADDRESS_POOL ":");
for (int i = 0; i < num_ue_pool; i++) {
std::string range_low(inet_ntoa(ue_pool_range_low[dnn[i].pool_id_iv4]));
......@@ -1044,6 +1046,7 @@ void smf_config::display() {
}
}
Logger::smf_app().info("- Default UE MTU: %d", ue_mtu);
Logger::smf_app().info("- Supported Features:");
Logger::smf_app().info(
" Register to NRF............: %s", register_nrf ? "Yes" : "No");
......@@ -1255,4 +1258,5 @@ bool smf_config::get_nwi_list_index(
nwi_enabled = false;
return false;
}
}
\ No newline at end of file
return true;
}
......@@ -309,7 +309,7 @@ class smf_config {
ue_pool_excluded[i] = {};
}
force_push_pco = true;
ue_mtu = 1500;
ue_mtu = 1358;
itti.itti_timer_sched_params.sched_priority = 85;
itti.n4_sched_params.sched_priority = 84;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment