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
a55cfeba
Commit
a55cfeba
authored
May 27, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
2b541627
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
src/ue.cpp
src/ue.cpp
+4
-3
src/ue/nas/storage.cpp
src/ue/nas/storage.cpp
+2
-2
src/ue/types.hpp
src/ue/types.hpp
+2
-8
No files found.
src/ue.cpp
View file @
a55cfeba
...
...
@@ -118,7 +118,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
s
.
sst
=
yaml
::
GetInt32
(
sNssai
,
"sst"
,
0
,
0xFF
);
if
(
yaml
::
HasField
(
sNssai
,
"sd"
))
s
.
sd
=
octet3
{
yaml
::
GetInt32
(
sNssai
,
"sd"
,
0
,
0xFFFFFF
)};
result
->
initials
.
defaultConfiguredNssai
.
slices
.
push_back
(
s
);
result
->
defaultConfiguredNssai
.
slices
.
push_back
(
s
);
}
}
...
...
@@ -130,7 +130,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
s
.
sst
=
yaml
::
GetInt32
(
sNssai
,
"sst"
,
0
,
0xFF
);
if
(
yaml
::
HasField
(
sNssai
,
"sd"
))
s
.
sd
=
octet3
{
yaml
::
GetInt32
(
sNssai
,
"sd"
,
0
,
0xFFFFFF
)};
result
->
initials
.
configuredNssai
.
slices
.
push_back
(
s
);
result
->
configuredNssai
.
slices
.
push_back
(
s
);
}
}
...
...
@@ -314,7 +314,8 @@ static nr::ue::UeConfig *GetConfigByUe(int ueIndex)
c
->
imeiSv
=
g_refConfig
->
imeiSv
;
c
->
supi
=
g_refConfig
->
supi
;
c
->
hplmn
=
g_refConfig
->
hplmn
;
c
->
initials
=
g_refConfig
->
initials
;
c
->
configuredNssai
=
g_refConfig
->
configuredNssai
;
c
->
defaultConfiguredNssai
=
g_refConfig
->
defaultConfiguredNssai
;
c
->
supportedAlgs
=
g_refConfig
->
supportedAlgs
;
c
->
gnbSearchList
=
g_refConfig
->
gnbSearchList
;
c
->
defaultSessions
=
g_refConfig
->
defaultSessions
;
...
...
src/ue/nas/storage.cpp
View file @
a55cfeba
...
...
@@ -72,8 +72,8 @@ MmStorage::MmStorage(TaskBase *base) : m_base{base}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
defConfiguredNssai
->
set
(
m_base
->
config
->
initials
.
defaultConfiguredNssai
);
configuredNssai
->
set
(
m_base
->
config
->
initials
.
configuredNssai
);
defConfiguredNssai
->
set
(
m_base
->
config
->
defaultConfiguredNssai
);
configuredNssai
->
set
(
m_base
->
config
->
configuredNssai
);
}
}
// namespace nr::ue
\ No newline at end of file
src/ue/types.hpp
View file @
a55cfeba
...
...
@@ -102,14 +102,8 @@ struct UeConfig
std
::
vector
<
std
::
string
>
gnbSearchList
{};
std
::
vector
<
SessionConfig
>
defaultSessions
{};
IntegrityMaxDataRateConfig
integrityMaxRate
{};
/* Read from config file as well, but should be stored in non-volatile
* mobile storage and subject to change in runtime */
struct
Initials
{
NetworkSlice
defaultConfiguredNssai
{};
NetworkSlice
configuredNssai
{};
}
initials
{};
/* Assigned by program */
bool
configureRouting
{};
...
...
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