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
bf351954
Commit
bf351954
authored
Apr 04, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE SRA dev.
parent
ee60a817
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
src/gnb/mr/task.cpp
src/gnb/mr/task.cpp
+5
-5
src/gnb/nts.hpp
src/gnb/nts.hpp
+0
-6
src/gnb/rrc/task.cpp
src/gnb/rrc/task.cpp
+11
-4
No files found.
src/gnb/mr/task.cpp
View file @
bf351954
...
@@ -171,11 +171,11 @@ void GnbMrTask::receiveUplinkPayload(int ue, rls::EPayloadType type, OctetString
...
@@ -171,11 +171,11 @@ void GnbMrTask::receiveUplinkPayload(int ue, rls::EPayloadType type, OctetString
{
{
if
(
type
==
rls
::
EPayloadType
::
RRC
)
if
(
type
==
rls
::
EPayloadType
::
RRC
)
{
{
auto
*
nw
=
new
NwGnbMrToRrc
(
NwGnbMrToRrc
::
RRC_PDU_DELIVERY
);
//
auto *nw = new NwGnbMrToRrc(NwGnbMrToRrc::RRC_PDU_DELIVERY);
nw
->
ueId
=
ue
;
//
nw->ueId = ue;
nw
->
channel
=
static_cast
<
rrc
::
RrcChannel
>
(
payload
.
getI
(
0
));
//
nw->channel = static_cast<rrc::RrcChannel>(payload.getI(0));
nw
->
pdu
=
payload
.
subCopy
(
1
);
//
nw->pdu = payload.subCopy(1);
m_base
->
rrcTask
->
push
(
nw
);
//
m_base->rrcTask->push(nw);
}
}
else
if
(
type
==
rls
::
EPayloadType
::
DATA
)
else
if
(
type
==
rls
::
EPayloadType
::
DATA
)
{
{
...
...
src/gnb/nts.hpp
View file @
bf351954
...
@@ -28,18 +28,12 @@ struct NwGnbMrToRrc : NtsMessage
...
@@ -28,18 +28,12 @@ struct NwGnbMrToRrc : NtsMessage
{
{
enum
PR
enum
PR
{
{
RRC_PDU_DELIVERY
,
RADIO_LINK_FAILURE
,
RADIO_LINK_FAILURE
,
}
present
;
}
present
;
// RRC_PDU_DELIVERY
// RADIO_LINK_FAILURE
// RADIO_LINK_FAILURE
int
ueId
{};
int
ueId
{};
// RRC_PDU_DELIVERY
rrc
::
RrcChannel
channel
{};
OctetString
pdu
{};
explicit
NwGnbMrToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
GNB_MR_TO_RRC
),
present
(
present
)
explicit
NwGnbMrToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
GNB_MR_TO_RRC
),
present
(
present
)
{
{
}
}
...
...
src/gnb/rrc/task.cpp
View file @
bf351954
...
@@ -42,10 +42,6 @@ void GnbRrcTask::onLoop()
...
@@ -42,10 +42,6 @@ void GnbRrcTask::onLoop()
auto
*
w
=
dynamic_cast
<
NwGnbMrToRrc
*>
(
msg
);
auto
*
w
=
dynamic_cast
<
NwGnbMrToRrc
*>
(
msg
);
switch
(
w
->
present
)
switch
(
w
->
present
)
{
{
case
NwGnbMrToRrc
:
:
RRC_PDU_DELIVERY
:
{
handleUplinkRrc
(
w
->
ueId
,
w
->
channel
,
w
->
pdu
);
break
;
}
case
NwGnbMrToRrc
:
:
RADIO_LINK_FAILURE
:
{
case
NwGnbMrToRrc
:
:
RADIO_LINK_FAILURE
:
{
handleRadioLinkFailure
(
w
->
ueId
);
handleRadioLinkFailure
(
w
->
ueId
);
break
;
break
;
...
@@ -53,6 +49,17 @@ void GnbRrcTask::onLoop()
...
@@ -53,6 +49,17 @@ void GnbRrcTask::onLoop()
}
}
break
;
break
;
}
}
case
NtsMessageType
:
:
GNB_SRA_TO_RRC
:
{
auto
*
w
=
dynamic_cast
<
NwGnbSraToRrc
*>
(
msg
);
switch
(
w
->
present
)
{
case
NwGnbSraToRrc
:
:
RRC_PDU_DELIVERY
:
{
handleUplinkRrc
(
w
->
ueId
,
w
->
channel
,
w
->
pdu
);
break
;
}
}
break
;
}
case
NtsMessageType
:
:
GNB_NGAP_TO_RRC
:
{
case
NtsMessageType
:
:
GNB_NGAP_TO_RRC
:
{
auto
*
w
=
dynamic_cast
<
NwGnbNgapToRrc
*>
(
msg
);
auto
*
w
=
dynamic_cast
<
NwGnbNgapToRrc
*>
(
msg
);
switch
(
w
->
present
)
switch
(
w
->
present
)
...
...
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