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
6df4d7ad
Commit
6df4d7ad
authored
Apr 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RRC paging handling
parent
d81431d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/gnb/rrc/handler.cpp
src/gnb/rrc/handler.cpp
+12
-2
No files found.
src/gnb/rrc/handler.cpp
View file @
6df4d7ad
...
...
@@ -11,6 +11,7 @@
#include <gnb/ngap/task.hpp>
#include <rrc/encode.hpp>
#include <asn/ngap/ASN_NGAP_FiveG-S-TMSI.h>
#include <asn/rrc/ASN_RRC_BCCH-BCH-Message.h>
#include <asn/rrc/ASN_RRC_BCCH-DL-SCH-Message.h>
#include <asn/rrc/ASN_RRC_CellGroupConfig.h>
...
...
@@ -172,7 +173,8 @@ void GnbRrcTask::handleRadioLinkFailure(int ueId)
m_ueCtx
.
erase
(
ueId
);
}
void
GnbRrcTask
::
handlePaging
(
const
OctetString
&
tmsi
,
const
asn
::
Unique
<
ASN_NGAP_TAIListForPaging
>
&
taiList
)
void
GnbRrcTask
::
handlePaging
(
const
asn
::
Unique
<
ASN_NGAP_FiveG_S_TMSI
>
&
tmsi
,
const
asn
::
Unique
<
ASN_NGAP_TAIListForPaging
>
&
taiList
)
{
// Construct and send a Paging message
auto
*
pdu
=
asn
::
New
<
ASN_RRC_PCCH_Message
>
();
...
...
@@ -183,7 +185,15 @@ void GnbRrcTask::handlePaging(const OctetString &tmsi, const asn::Unique<ASN_NGA
auto
*
record
=
asn
::
New
<
ASN_RRC_PagingRecord
>
();
record
->
ue_Identity
.
present
=
ASN_RRC_PagingUE_Identity_PR_ng_5G_S_TMSI
;
asn
::
SetBitString
(
record
->
ue_Identity
.
choice
.
ng_5G_S_TMSI
,
tmsi
);
OctetString
tmsiOctets
{};
tmsiOctets
.
appendOctet2
(
bits
::
Ranged16
({
{
10
,
asn
::
GetBitStringInt
<
10
>
(
tmsi
->
aMFSetID
)},
{
6
,
asn
::
GetBitStringInt
<
10
>
(
tmsi
->
aMFPointer
)},
}));
tmsiOctets
.
append
(
asn
::
GetOctetString
(
tmsi
->
fiveG_TMSI
));
asn
::
SetBitString
(
record
->
ue_Identity
.
choice
.
ng_5G_S_TMSI
,
tmsiOctets
);
paging
->
pagingRecordList
=
asn
::
NewFor
(
paging
->
pagingRecordList
);
asn
::
SequenceAdd
(
*
paging
->
pagingRecordList
,
record
);
...
...
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