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
98b30ebb
Commit
98b30ebb
authored
Apr 04, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SRA dev.
parent
d8e46c67
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
3 deletions
+29
-3
src/ue/app/task.hpp
src/ue/app/task.hpp
+2
-0
src/ue/nas/mm/base.cpp
src/ue/nas/mm/base.cpp
+4
-0
src/ue/nts.hpp
src/ue/nts.hpp
+20
-0
src/urs/sra_pdu.hpp
src/urs/sra_pdu.hpp
+2
-1
src/utils/nts.hpp
src/utils/nts.hpp
+1
-2
No files found.
src/ue/app/task.hpp
View file @
98b30ebb
...
...
@@ -29,6 +29,7 @@ class UeAppTask : public NtsTask
std
::
array
<
std
::
optional
<
UePduSessionInfo
>
,
16
>
m_pduSessions
{};
std
::
array
<
TunTask
*
,
16
>
m_tunTasks
{};
ECmState
m_cmState
{};
friend
class
UeCmdHandler
;
...
...
@@ -44,6 +45,7 @@ class UeAppTask : public NtsTask
private:
void
receiveStatusUpdate
(
NwUeStatusUpdate
&
msg
);
void
setupTunInterface
(
const
PduSession
*
pduSession
);
void
handleUplinkDataRequest
(
int
psi
,
OctetString
&&
data
);
};
}
// namespace nr::ue
src/ue/nas/mm/base.cpp
View file @
98b30ebb
...
...
@@ -154,6 +154,10 @@ void NasMm::switchCmState(ECmState state)
onSwitchCmState
(
oldState
,
m_cmState
);
auto
*
statusUpdate
=
new
NwUeStatusUpdate
(
NwUeStatusUpdate
::
CM_STATE
);
statusUpdate
->
cmState
=
m_cmState
;
m_base
->
appTask
->
push
(
statusUpdate
);
if
(
m_base
->
nodeListener
)
{
m_base
->
nodeListener
->
onSwitch
(
app
::
NodeType
::
UE
,
m_base
->
config
->
getNodeName
(),
app
::
StateType
::
CM
,
...
...
src/ue/nts.hpp
View file @
98b30ebb
...
...
@@ -186,10 +186,27 @@ struct NwUeNasToApp : NtsMessage
}
};
struct
NwUeAppToSra
:
NtsMessage
{
enum
PR
{
DATA_PDU_DELIVERY
}
present
;
// DATA_PDU_DELIVERY
int
psi
{};
OctetString
pdu
{};
explicit
NwUeAppToSra
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_APP_TO_SRA
),
present
(
present
)
{
}
};
struct
NwUeStatusUpdate
:
NtsMessage
{
static
constexpr
const
int
SESSION_ESTABLISHMENT
=
1
;
static
constexpr
const
int
SESSION_RELEASE
=
2
;
static
constexpr
const
int
CM_STATE
=
3
;
const
int
what
{};
...
...
@@ -199,6 +216,9 @@ struct NwUeStatusUpdate : NtsMessage
// SESSION_RELEASE
int
psi
{};
// CM_STATE
ECmState
cmState
{};
explicit
NwUeStatusUpdate
(
const
int
what
)
:
NtsMessage
(
NtsMessageType
::
UE_STATUS_UPDATE
),
what
(
what
)
{
}
...
...
src/urs/sra_pdu.hpp
View file @
98b30ebb
...
...
@@ -28,7 +28,8 @@ enum class EMessageType : uint8_t
enum
class
EPduType
:
uint8_t
{
RESERVED
=
0
,
RRC
RRC
,
DATA
};
struct
SraMessage
...
...
src/utils/nts.hpp
View file @
98b30ebb
...
...
@@ -40,10 +40,9 @@ enum class NtsMessageType
GNB_NGAP_TO_RRC
,
GNB_RRC_TO_NGAP
,
GNB_NGAP_TO_GTP
,
GNB_GTP_TO_MR
,
GNB_SCTP
,
UE_APP_TO_
MR
,
UE_APP_TO_
SRA
,
UE_APP_TO_TUN
,
UE_TUN_TO_APP
,
UE_RRC_TO_NAS
,
...
...
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