Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
26f9096c
Commit
26f9096c
authored
Sep 23, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UE MTU as an option from config file
parent
58fce642
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
etc/smf.conf
etc/smf.conf
+5
-3
src/smf_app/smf_config.cpp
src/smf_app/smf_config.cpp
+5
-1
src/smf_app/smf_config.hpp
src/smf_app/smf_config.hpp
+1
-1
No files found.
etc/smf.conf
View file @
26f9096c
...
...
@@ -78,6 +78,8 @@ SMF =
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
:
...
...
src/smf_app/smf_config.cpp
View file @
26f9096c
...
...
@@ -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
;
}
return
true
;
}
src/smf_app/smf_config.hpp
View file @
26f9096c
...
...
@@ -309,7 +309,7 @@ class smf_config {
ue_pool_excluded
[
i
]
=
{};
}
force_push_pco
=
true
;
ue_mtu
=
1
500
;
ue_mtu
=
1
358
;
itti
.
itti_timer_sched_params
.
sched_priority
=
85
;
itti
.
n4_sched_params
.
sched_priority
=
84
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment