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
41e7413a
Commit
41e7413a
authored
May 25, 2021
by
Daniele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dnn and snssai to SessionInfo.
parent
f4ba25f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
src/ue/app/task.cpp
src/ue/app/task.cpp
+5
-0
src/ue/types.cpp
src/ue/types.cpp
+2
-0
src/ue/types.hpp
src/ue/types.hpp
+2
-0
No files found.
src/ue/app/task.cpp
View file @
41e7413a
...
...
@@ -129,6 +129,11 @@ void UeAppTask::receiveStatusUpdate(NwUeStatusUpdate &msg)
UePduSessionInfo
sessionInfo
{};
sessionInfo
.
psi
=
session
->
psi
;
if
(
session
->
apn
.
has_value
())
sessionInfo
.
apn
=
session
->
apn
.
value
();
if
(
session
->
sNssai
.
has_value
())
sessionInfo
.
sNssai
=
session
->
sNssai
.
value
();
sessionInfo
.
type
=
nas
::
utils
::
EnumToString
(
session
->
sessionType
);
if
(
session
->
pduAddress
.
has_value
())
sessionInfo
.
address
=
utils
::
OctetStringToIp
(
session
->
pduAddress
->
pduAddressInformation
);
...
...
src/ue/types.cpp
View file @
41e7413a
...
...
@@ -242,6 +242,8 @@ Json ToJson(const UePduSessionInfo &v)
{
"type"
,
v
.
type
},
{
"address"
,
v
.
address
},
{
"emergency"
,
v
.
isEmergency
},
{
"apn"
,
v
.
apn
},
{
"sNssai"
,
ToJson
(
v
.
sNssai
)}
});
}
...
...
src/ue/types.hpp
View file @
41e7413a
...
...
@@ -390,6 +390,8 @@ struct UePduSessionInfo
std
::
string
address
{};
bool
isEmergency
{};
bool
uplinkPending
{};
std
::
string
apn
{};
SingleSlice
sNssai
{};
};
enum
class
ERegUpdateCause
...
...
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