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
07ed4cbf
Commit
07ed4cbf
authored
May 19, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
f267bee9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
27 deletions
+27
-27
src/ue/nas/mm/messaging.cpp
src/ue/nas/mm/messaging.cpp
+1
-1
src/ue/rrc/handler.cpp
src/ue/rrc/handler.cpp
+0
-19
src/ue/rrc/nas.cpp
src/ue/rrc/nas.cpp
+26
-6
src/ue/rrc/task.hpp
src/ue/rrc/task.hpp
+0
-1
No files found.
src/ue/nas/mm/messaging.cpp
View file @
07ed4cbf
...
@@ -123,7 +123,7 @@ void NasMm::sendNasMessage(const nas::PlainMmMessage &msg)
...
@@ -123,7 +123,7 @@ void NasMm::sendNasMessage(const nas::PlainMmMessage &msg)
if
(
msg
.
messageType
==
nas
::
EMessageType
::
REGISTRATION_REQUEST
||
if
(
msg
.
messageType
==
nas
::
EMessageType
::
REGISTRATION_REQUEST
||
msg
.
messageType
==
nas
::
EMessageType
::
SERVICE_REQUEST
)
msg
.
messageType
==
nas
::
EMessageType
::
SERVICE_REQUEST
)
{
{
if
(
HasNonCleartext
(
msg
))
if
(
HasNonCleartext
(
msg
)
&&
m_cmState
==
ECmState
::
CM_IDLE
)
{
{
OctetString
originalPdu
;
OctetString
originalPdu
;
nas
::
EncodeNasMessage
(
msg
,
originalPdu
);
nas
::
EncodeNasMessage
(
msg
,
originalPdu
);
...
...
src/ue/rrc/handler.cpp
View file @
07ed4cbf
...
@@ -32,25 +32,6 @@
...
@@ -32,25 +32,6 @@
namespace
nr
::
ue
namespace
nr
::
ue
{
{
void
UeRrcTask
::
deliverUplinkNas
(
OctetString
&&
nasPdu
)
{
auto
*
pdu
=
asn
::
New
<
ASN_RRC_UL_DCCH_Message
>
();
pdu
->
message
.
present
=
ASN_RRC_UL_DCCH_MessageType_PR_c1
;
pdu
->
message
.
choice
.
c1
=
asn
::
New
<
ASN_RRC_UL_DCCH_MessageType
::
ASN_RRC_UL_DCCH_MessageType_u
::
ASN_RRC_UL_DCCH_MessageType__c1
>
();
pdu
->
message
.
choice
.
c1
->
present
=
ASN_RRC_UL_DCCH_MessageType__c1_PR_ulInformationTransfer
;
pdu
->
message
.
choice
.
c1
->
choice
.
ulInformationTransfer
=
asn
::
New
<
ASN_RRC_ULInformationTransfer
>
();
auto
&
c1
=
pdu
->
message
.
choice
.
c1
->
choice
.
ulInformationTransfer
->
criticalExtensions
;
c1
.
present
=
ASN_RRC_ULInformationTransfer__criticalExtensions_PR_ulInformationTransfer
;
c1
.
choice
.
ulInformationTransfer
=
asn
::
New
<
ASN_RRC_ULInformationTransfer_IEs
>
();
c1
.
choice
.
ulInformationTransfer
->
dedicatedNAS_Message
=
asn
::
New
<
ASN_RRC_DedicatedNAS_Message_t
>
();
asn
::
SetOctetString
(
*
c1
.
choice
.
ulInformationTransfer
->
dedicatedNAS_Message
,
nasPdu
);
sendRrcMessage
(
pdu
);
}
void
UeRrcTask
::
receiveDownlinkInformationTransfer
(
const
ASN_RRC_DLInformationTransfer
&
msg
)
void
UeRrcTask
::
receiveDownlinkInformationTransfer
(
const
ASN_RRC_DLInformationTransfer
&
msg
)
{
{
OctetString
nasPdu
=
OctetString
nasPdu
=
...
...
src/ue/rrc/nas.cpp
View file @
07ed4cbf
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
#include <ue/nas/task.hpp>
#include <ue/nas/task.hpp>
#include <ue/nts.hpp>
#include <ue/nts.hpp>
#include <asn/rrc/ASN_RRC_ULInformationTransfer-IEs.h>
#include <asn/rrc/ASN_RRC_ULInformationTransfer.h>
namespace
nr
::
ue
namespace
nr
::
ue
{
{
...
@@ -23,18 +26,35 @@ void UeRrcTask::deliverUplinkNas(uint32_t pduId, OctetString &&nasPdu)
...
@@ -23,18 +26,35 @@ void UeRrcTask::deliverUplinkNas(uint32_t pduId, OctetString &&nasPdu)
return
;
return
;
}
}
if
(
m_state
==
ERrcState
::
RRC_CONNECTED
)
if
(
nasPdu
.
length
()
==
0
)
return
;
if
(
m_state
==
ERrcState
::
RRC_IDLE
)
{
{
// TODO
startConnectionSetup
(
std
::
move
(
nasPdu
));
return
;
}
}
else
if
(
m_state
==
ERrcState
::
RRC_INACTIVE
)
else
if
(
m_state
==
ERrcState
::
RRC_INACTIVE
)
{
{
// TODO
// TODO
return
;
}
}
else
if
(
m_state
==
ERrcState
::
RRC_IDLE
)
{
auto
*
pdu
=
asn
::
New
<
ASN_RRC_UL_DCCH_Message
>
();
startConnectionSetup
(
std
::
move
(
nasPdu
));
pdu
->
message
.
present
=
ASN_RRC_UL_DCCH_MessageType_PR_c1
;
}
pdu
->
message
.
choice
.
c1
=
asn
::
New
<
ASN_RRC_UL_DCCH_MessageType
::
ASN_RRC_UL_DCCH_MessageType_u
::
ASN_RRC_UL_DCCH_MessageType__c1
>
();
pdu
->
message
.
choice
.
c1
->
present
=
ASN_RRC_UL_DCCH_MessageType__c1_PR_ulInformationTransfer
;
pdu
->
message
.
choice
.
c1
->
choice
.
ulInformationTransfer
=
asn
::
New
<
ASN_RRC_ULInformationTransfer
>
();
auto
&
c1
=
pdu
->
message
.
choice
.
c1
->
choice
.
ulInformationTransfer
->
criticalExtensions
;
c1
.
present
=
ASN_RRC_ULInformationTransfer__criticalExtensions_PR_ulInformationTransfer
;
c1
.
choice
.
ulInformationTransfer
=
asn
::
New
<
ASN_RRC_ULInformationTransfer_IEs
>
();
c1
.
choice
.
ulInformationTransfer
->
dedicatedNAS_Message
=
asn
::
New
<
ASN_RRC_DedicatedNAS_Message_t
>
();
asn
::
SetOctetString
(
*
c1
.
choice
.
ulInformationTransfer
->
dedicatedNAS_Message
,
nasPdu
);
sendRrcMessage
(
pdu
);
}
}
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
src/ue/rrc/task.hpp
View file @
07ed4cbf
...
@@ -75,7 +75,6 @@ class UeRrcTask : public NtsTask
...
@@ -75,7 +75,6 @@ class UeRrcTask : public NtsTask
private:
private:
/* Handlers */
/* Handlers */
void
handleDownlinkRrc
(
int
cellId
,
rrc
::
RrcChannel
channel
,
const
OctetString
&
pdu
);
void
handleDownlinkRrc
(
int
cellId
,
rrc
::
RrcChannel
channel
,
const
OctetString
&
pdu
);
void
deliverUplinkNas
(
OctetString
&&
nasPdu
);
void
receiveRrcRelease
(
const
ASN_RRC_RRCRelease
&
msg
);
void
receiveRrcRelease
(
const
ASN_RRC_RRCRelease
&
msg
);
void
receiveDownlinkInformationTransfer
(
const
ASN_RRC_DLInformationTransfer
&
msg
);
void
receiveDownlinkInformationTransfer
(
const
ASN_RRC_DLInformationTransfer
&
msg
);
void
receivePaging
(
const
ASN_RRC_Paging
&
msg
);
void
receivePaging
(
const
ASN_RRC_Paging
&
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