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
fee7dfd3
Commit
fee7dfd3
authored
Apr 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RRC paging handling
parent
46aa9088
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
src/gnb/ngap/radio.cpp
src/gnb/ngap/radio.cpp
+14
-9
src/gnb/nts.hpp
src/gnb/nts.hpp
+1
-2
src/gnb/rrc/task.hpp
src/gnb/rrc/task.hpp
+1
-2
No files found.
src/gnb/ngap/radio.cpp
View file @
fee7dfd3
...
@@ -38,20 +38,25 @@ void NgapTask::receivePaging(int amfId, ASN_NGAP_Paging *msg)
...
@@ -38,20 +38,25 @@ void NgapTask::receivePaging(int amfId, ASN_NGAP_Paging *msg)
if
(
amf
==
nullptr
)
if
(
amf
==
nullptr
)
return
;
return
;
auto
*
w
=
new
NwGnbNgapToRrc
(
NwGnbNgapToRrc
::
PAGING
);
auto
*
ieUePagingIdentity
=
asn
::
ngap
::
GetProtocolIe
(
msg
,
ASN_NGAP_ProtocolIE_ID_id_UEPagingIdentity
);
auto
*
ieUePagingIdentity
=
asn
::
ngap
::
GetProtocolIe
(
msg
,
ASN_NGAP_ProtocolIE_ID_id_UEPagingIdentity
);
if
(
ieUePagingIdentity
)
auto
*
ieTaiListForPaging
=
asn
::
ngap
::
GetProtocolIe
(
msg
,
ASN_NGAP_ProtocolIE_ID_id_TAIListForPaging
);
if
(
ieUePagingIdentity
==
nullptr
||
ieTaiListForPaging
==
nullptr
||
ieUePagingIdentity
->
UEPagingIdentity
.
present
!=
ASN_NGAP_UEPagingIdentity_PR_fiveG_S_TMSI
)
{
{
if
(
ieUePagingIdentity
->
UEPagingIdentity
.
present
==
ASN_NGAP_UEPagingIdentity_PR_fiveG_S_TMSI
)
m_logger
->
err
(
"Invalid parameters received in Paging message"
);
w
->
uePagingTmsi
=
asn
::
UniqueCopy
(
*
ieUePagingIdentity
->
UEPagingIdentity
.
choice
.
fiveG_S_TMSI
,
return
;
asn_DEF_ASN_NGAP_FiveG_S_TMSI
);
}
}
auto
*
ieTaiListForPaging
=
asn
::
ngap
::
GetProtocolIe
(
msg
,
ASN_NGAP_ProtocolIE_ID_id_TAIListForPaging
);
auto
*
w
=
new
NwGnbNgapToRrc
(
NwGnbNgapToRrc
::
PAGING
);
if
(
ieTaiListForPaging
)
w
->
uePagingTmsi
=
ngap_encode
::
EncodeS
(
asn_DEF_ASN_NGAP_FiveG_S_TMSI
,
ieUePagingIdentity
->
UEPagingIdentity
.
choice
.
fiveG_S_TMSI
);
w
->
taiListForPaging
=
asn
::
UniqueCopy
(
ieTaiListForPaging
->
TAIListForPaging
,
asn_DEF_ASN_NGAP_TAIListForPaging
);
if
(
w
->
uePagingTmsi
.
length
()
==
0
)
{
{
w
->
taiListForPaging
=
asn
::
UniqueCopy
(
ieTaiListForPaging
->
TAIListForPaging
,
asn_DEF_ASN_NGAP_TAIListForPaging
);
m_logger
->
err
(
"FiveG-S-TMSI encoding failed"
);
delete
w
;
return
;
}
}
m_base
->
rrcTask
->
push
(
w
);
m_base
->
rrcTask
->
push
(
w
);
...
...
src/gnb/nts.hpp
View file @
fee7dfd3
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include <utils/octet_string.hpp>
#include <utils/octet_string.hpp>
#include <utils/unique_buffer.hpp>
#include <utils/unique_buffer.hpp>
extern
"C"
struct
ASN_NGAP_FiveG_S_TMSI
;
extern
"C"
struct
ASN_NGAP_TAIListForPaging
;
extern
"C"
struct
ASN_NGAP_TAIListForPaging
;
namespace
nr
::
gnb
namespace
nr
::
gnb
...
@@ -117,7 +116,7 @@ struct NwGnbNgapToRrc : NtsMessage
...
@@ -117,7 +116,7 @@ struct NwGnbNgapToRrc : NtsMessage
OctetString
pdu
{};
OctetString
pdu
{};
// PAGING
// PAGING
asn
::
Unique
<
ASN_NGAP_FiveG_S_TMSI
>
uePagingTmsi
{};
OctetString
uePagingTmsi
{};
asn
::
Unique
<
ASN_NGAP_TAIListForPaging
>
taiListForPaging
{};
asn
::
Unique
<
ASN_NGAP_TAIListForPaging
>
taiListForPaging
{};
explicit
NwGnbNgapToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
GNB_NGAP_TO_RRC
),
present
(
present
)
explicit
NwGnbNgapToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
GNB_NGAP_TO_RRC
),
present
(
present
)
...
...
src/gnb/rrc/task.hpp
View file @
fee7dfd3
...
@@ -70,8 +70,7 @@ class GnbRrcTask : public NtsTask
...
@@ -70,8 +70,7 @@ class GnbRrcTask : public NtsTask
void
deliverUplinkNas
(
int
ueId
,
OctetString
&&
nasPdu
);
void
deliverUplinkNas
(
int
ueId
,
OctetString
&&
nasPdu
);
void
releaseConnection
(
int
ueId
);
void
releaseConnection
(
int
ueId
);
void
handleRadioLinkFailure
(
int
ueId
);
void
handleRadioLinkFailure
(
int
ueId
);
void
handlePaging
(
const
asn
::
Unique
<
ASN_NGAP_FiveG_S_TMSI
>
&
tmsi
,
void
handlePaging
(
const
OctetString
&
tmsi
,
const
asn
::
Unique
<
ASN_NGAP_TAIListForPaging
>
&
taiList
);
const
asn
::
Unique
<
ASN_NGAP_TAIListForPaging
>
&
taiList
);
void
receiveUplinkInformationTransfer
(
int
ueId
,
const
ASN_RRC_ULInformationTransfer
&
msg
);
void
receiveUplinkInformationTransfer
(
int
ueId
,
const
ASN_RRC_ULInformationTransfer
&
msg
);
void
receiveRrcSetupRequest
(
int
ueId
,
const
ASN_RRC_RRCSetupRequest
&
msg
);
void
receiveRrcSetupRequest
(
int
ueId
,
const
ASN_RRC_RRCSetupRequest
&
msg
);
...
...
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