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
a037ef24
Commit
a037ef24
authored
May 28, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/aligungr/UERANSIM
into dev
Conflicts: src/ue/app/task.cpp
parents
6f903ab7
2d2a23ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
src/ue/app/task.cpp
src/ue/app/task.cpp
+14
-0
src/ue/types.cpp
src/ue/types.cpp
+6
-6
src/ue/types.hpp
src/ue/types.hpp
+2
-0
No files found.
src/ue/app/task.cpp
View file @
a037ef24
...
...
@@ -122,6 +122,20 @@ void UeAppTask::receiveStatusUpdate(NmUeStatusUpdate &msg)
if
(
msg
.
what
==
NmUeStatusUpdate
::
SESSION_ESTABLISHMENT
)
{
auto
*
session
=
msg
.
pduSession
;
UePduSessionInfo
sessionInfo
{};
sessionInfo
.
psi
=
session
->
psi
;
sessionInfo
.
apn
=
session
->
apn
;
sessionInfo
.
sNssai
=
session
->
sNssai
;
sessionInfo
.
type
=
nas
::
utils
::
EnumToString
(
session
->
sessionType
);
if
(
session
->
pduAddress
.
has_value
())
sessionInfo
.
address
=
utils
::
OctetStringToIp
(
session
->
pduAddress
->
pduAddressInformation
);
sessionInfo
.
isEmergency
=
session
->
isEmergency
;
sessionInfo
.
uplinkPending
=
false
;
m_pduSessions
[
session
->
psi
]
=
std
::
move
(
sessionInfo
);
setupTunInterface
(
session
);
return
;
}
...
...
src/ue/types.cpp
View file @
a037ef24
...
...
@@ -287,12 +287,12 @@ Json ToJson(const EPsState &state)
Json
ToJson
(
const
UePduSessionInfo
&
v
)
{
return
Json
::
Obj
({
{
"id"
,
v
.
psi
},
{
"type"
,
v
.
type
},
{
"address"
,
v
.
address
},
{
"emergency"
,
v
.
isEmergency
},
});
return
Json
::
Obj
({
{
"id"
,
v
.
psi
},
{
"type"
,
v
.
type
},
{
"address"
,
v
.
address
},
{
"emergency"
,
v
.
isEmergency
},
{
"apn"
,
::
ToJson
(
v
.
apn
)
},
{
"s-nssai"
,
ToJson
(
v
.
sNssai
)}
});
}
bool
ActiveCellInfo
::
hasValue
()
const
...
...
src/ue/types.hpp
View file @
a037ef24
...
...
@@ -460,6 +460,8 @@ struct UePduSessionInfo
std
::
string
address
{};
bool
isEmergency
{};
bool
uplinkPending
{};
std
::
optional
<
std
::
string
>
apn
{};
std
::
optional
<
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