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
19484aa0
Commit
19484aa0
authored
Dec 07, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE config refactored
parent
d3d1b392
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
src/gnb.cpp
src/gnb.cpp
+1
-1
src/gnb/rls/udp_task.cpp
src/gnb/rls/udp_task.cpp
+1
-1
src/gnb/types.hpp
src/gnb/types.hpp
+1
-1
src/ue/rls/udp_task.cpp
src/ue/rls/udp_task.cpp
+1
-1
src/utils/constants.hpp
src/utils/constants.hpp
+1
-1
No files found.
src/gnb.cpp
View file @
19484aa0
...
@@ -48,7 +48,7 @@ static nr::gnb::GnbConfig *ReadConfigYaml()
...
@@ -48,7 +48,7 @@ static nr::gnb::GnbConfig *ReadConfigYaml()
result
->
gnbIdLength
=
yaml
::
GetInt32
(
config
,
"idLength"
,
22
,
32
);
result
->
gnbIdLength
=
yaml
::
GetInt32
(
config
,
"idLength"
,
22
,
32
);
result
->
tac
=
yaml
::
GetInt32
(
config
,
"tac"
,
0
,
0xFFFFFF
);
result
->
tac
=
yaml
::
GetInt32
(
config
,
"tac"
,
0
,
0xFFFFFF
);
result
->
portal
Ip
=
yaml
::
GetIp
(
config
,
"linkIp"
);
result
->
link
Ip
=
yaml
::
GetIp
(
config
,
"linkIp"
);
result
->
ngapIp
=
yaml
::
GetIp
(
config
,
"ngapIp"
);
result
->
ngapIp
=
yaml
::
GetIp
(
config
,
"ngapIp"
);
result
->
gtpIp
=
yaml
::
GetIp4
(
config
,
"gtpIp"
);
result
->
gtpIp
=
yaml
::
GetIp4
(
config
,
"gtpIp"
);
...
...
src/gnb/rls/udp_task.cpp
View file @
19484aa0
...
@@ -48,7 +48,7 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, uint64_t sti, Vector3 phyLocation)
...
@@ -48,7 +48,7 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, uint64_t sti, Vector3 phyLocation)
try
try
{
{
m_server
=
new
udp
::
UdpServer
(
base
->
config
->
portalIp
,
cons
::
Portal
Port
);
m_server
=
new
udp
::
UdpServer
(
base
->
config
->
linkIp
,
cons
::
RadioLink
Port
);
}
}
catch
(
const
LibError
&
e
)
catch
(
const
LibError
&
e
)
{
{
...
...
src/gnb/types.hpp
View file @
19484aa0
...
@@ -309,7 +309,7 @@ struct GnbConfig
...
@@ -309,7 +309,7 @@ struct GnbConfig
int
tac
{};
int
tac
{};
NetworkSlice
nssai
{};
NetworkSlice
nssai
{};
std
::
vector
<
GnbAmfConfig
>
amfConfigs
{};
std
::
vector
<
GnbAmfConfig
>
amfConfigs
{};
std
::
string
portal
Ip
{};
std
::
string
link
Ip
{};
std
::
string
ngapIp
{};
std
::
string
ngapIp
{};
std
::
string
gtpIp
{};
std
::
string
gtpIp
{};
std
::
optional
<
std
::
string
>
gtpAdvertiseIp
{};
std
::
optional
<
std
::
string
>
gtpAdvertiseIp
{};
...
...
src/ue/rls/udp_task.cpp
View file @
19484aa0
...
@@ -33,7 +33,7 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, RlsSharedContext *shCtx, const std::vecto
...
@@ -33,7 +33,7 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, RlsSharedContext *shCtx, const std::vecto
m_server
=
new
udp
::
UdpServer
();
m_server
=
new
udp
::
UdpServer
();
for
(
auto
&
ip
:
searchSpace
)
for
(
auto
&
ip
:
searchSpace
)
m_searchSpace
.
emplace_back
(
ip
,
cons
::
Portal
Port
);
m_searchSpace
.
emplace_back
(
ip
,
cons
::
RadioLink
Port
);
m_simPos
=
Vector3
{};
m_simPos
=
Vector3
{};
}
}
...
...
src/utils/constants.hpp
View file @
19484aa0
...
@@ -23,7 +23,7 @@ struct cons
...
@@ -23,7 +23,7 @@ struct cons
// Some port values
// Some port values
static
constexpr
const
uint16_t
GtpPort
=
2152
;
static
constexpr
const
uint16_t
GtpPort
=
2152
;
static
constexpr
const
uint16_t
Portal
Port
=
4997
;
static
constexpr
const
uint16_t
RadioLink
Port
=
4997
;
// TUN interface
// TUN interface
static
constexpr
const
char
*
TunNamePrefix
=
"uesimtun"
;
static
constexpr
const
char
*
TunNamePrefix
=
"uesimtun"
;
...
...
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