Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
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
Libraries
UERANSIM
Commits
d150e59f
Commit
d150e59f
authored
May 31, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Custom GTP IP address configuration for UP Transport Layer Information
parent
0b4389c5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
src/gnb.cpp
src/gnb.cpp
+3
-0
src/gnb/ngap/session.cpp
src/gnb/ngap/session.cpp
+3
-1
src/gnb/types.hpp
src/gnb/types.hpp
+1
-0
No files found.
src/gnb.cpp
View file @
d150e59f
...
@@ -52,6 +52,9 @@ static nr::gnb::GnbConfig *ReadConfigYaml()
...
@@ -52,6 +52,9 @@ static nr::gnb::GnbConfig *ReadConfigYaml()
result
->
ngapIp
=
yaml
::
GetIp4
(
config
,
"ngapIp"
);
result
->
ngapIp
=
yaml
::
GetIp4
(
config
,
"ngapIp"
);
result
->
gtpIp
=
yaml
::
GetIp4
(
config
,
"gtpIp"
);
result
->
gtpIp
=
yaml
::
GetIp4
(
config
,
"gtpIp"
);
if
(
yaml
::
HasField
(
config
,
"gtpAdvertiseIp"
))
result
->
gtpAdvertiseIp
=
yaml
::
GetIp4
(
config
,
"gtpAdvertiseIp"
);
result
->
ignoreStreamIds
=
yaml
::
GetBool
(
config
,
"ignoreStreamIds"
);
result
->
ignoreStreamIds
=
yaml
::
GetBool
(
config
,
"ignoreStreamIds"
);
result
->
pagingDrx
=
EPagingDrx
::
V128
;
result
->
pagingDrx
=
EPagingDrx
::
V128
;
result
->
name
=
"UERANSIM-gnb-"
+
std
::
to_string
(
result
->
plmn
.
mcc
)
+
"-"
+
std
::
to_string
(
result
->
plmn
.
mnc
)
+
"-"
+
result
->
name
=
"UERANSIM-gnb-"
+
std
::
to_string
(
result
->
plmn
.
mcc
)
+
"-"
+
std
::
to_string
(
result
->
plmn
.
mnc
)
+
"-"
+
...
...
src/gnb/ngap/session.cpp
View file @
d150e59f
...
@@ -233,7 +233,9 @@ std::optional<NgapCause> NgapTask::setupPduSessionResource(PduSessionResource *r
...
@@ -233,7 +233,9 @@ std::optional<NgapCause> NgapTask::setupPduSessionResource(PduSessionResource *r
return
NgapCause
::
Protocol_semantic_error
;
return
NgapCause
::
Protocol_semantic_error
;
}
}
resource
->
downTunnel
.
address
=
utils
::
IpToOctetString
(
m_base
->
config
->
gtpIp
);
std
::
string
gtpIp
=
m_base
->
config
->
gtpAdvertiseIp
.
value_or
(
m_base
->
config
->
gtpIp
);
resource
->
downTunnel
.
address
=
utils
::
IpToOctetString
(
gtpIp
);
resource
->
downTunnel
.
teid
=
++
m_downlinkTeidCounter
;
resource
->
downTunnel
.
teid
=
++
m_downlinkTeidCounter
;
auto
*
w
=
new
NmGnbNgapToGtp
(
NmGnbNgapToGtp
::
SESSION_CREATE
);
auto
*
w
=
new
NmGnbNgapToGtp
(
NmGnbNgapToGtp
::
SESSION_CREATE
);
...
...
src/gnb/types.hpp
View file @
d150e59f
...
@@ -307,6 +307,7 @@ struct GnbConfig
...
@@ -307,6 +307,7 @@ struct GnbConfig
std
::
string
portalIp
{};
std
::
string
portalIp
{};
std
::
string
ngapIp
{};
std
::
string
ngapIp
{};
std
::
string
gtpIp
{};
std
::
string
gtpIp
{};
std
::
optional
<
std
::
string
>
gtpAdvertiseIp
{};
bool
ignoreStreamIds
{};
bool
ignoreStreamIds
{};
/* Assigned by program */
/* Assigned by program */
...
...
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