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
b96f4a2b
Commit
b96f4a2b
authored
Dec 29, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
e593da15
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
63 deletions
+10
-63
src/ue/l3/task.cpp
src/ue/l3/task.cpp
+0
-4
src/ue/nas/layer.cpp
src/ue/nas/layer.cpp
+8
-4
src/ue/nas/layer.hpp
src/ue/nas/layer.hpp
+1
-0
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+0
-3
src/ue/nas/mm/sap.cpp
src/ue/nas/mm/sap.cpp
+0
-33
src/ue/nts.hpp
src/ue/nts.hpp
+0
-15
src/ue/rrc/nas.cpp
src/ue/rrc/nas.cpp
+1
-3
src/utils/nts.hpp
src/utils/nts.hpp
+0
-1
No files found.
src/ue/l3/task.cpp
View file @
b96f4a2b
...
...
@@ -67,10 +67,6 @@ void UeL3Task::onLoop()
{
m_rrc
->
handleRlsSapMessage
(
dynamic_cast
<
NmUeRlsToRrc
&>
(
*
msg
));
}
else
if
(
msg
->
msgType
==
NtsMessageType
::
UE_RRC_TO_NAS
)
{
m_nas
->
handleSapMessage
(
std
::
move
(
msg
));
}
else
if
(
msg
->
msgType
==
NtsMessageType
::
UE_TUN_TO_APP
||
msg
->
msgType
==
NtsMessageType
::
UE_RLS_TO_NAS
)
{
m_nas
->
handleSapMessage
(
std
::
move
(
msg
));
...
...
src/ue/nas/layer.cpp
View file @
b96f4a2b
...
...
@@ -35,10 +35,6 @@ void NasLayer::handleSapMessage(std::unique_ptr<NtsMessage> msg)
{
switch
(
msg
->
msgType
)
{
case
NtsMessageType
:
:
UE_RRC_TO_NAS
:
{
m_mm
->
handleRrcEvent
(
dynamic_cast
<
NmUeRrcToNas
&>
(
*
msg
));
break
;
}
case
NtsMessageType
:
:
UE_TUN_TO_APP
:
{
auto
&
w
=
dynamic_cast
<
NmUeTunToApp
&>
(
*
msg
);
switch
(
w
.
present
)
...
...
@@ -129,4 +125,12 @@ void NasLayer::handleActiveCellChange(const Tai &prevTai)
m_mm
->
handleActiveCellChange
(
prevTai
);
}
void
NasLayer
::
handleNasDelivery
(
const
OctetString
&
data
)
{
OctetView
buffer
{
data
};
auto
nasMessage
=
nas
::
DecodeNasMessage
(
buffer
);
if
(
nasMessage
!=
nullptr
)
m_mm
->
receiveNasMessage
(
*
nasMessage
);
}
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/layer.hpp
View file @
b96f4a2b
...
...
@@ -42,6 +42,7 @@ class NasLayer
void
handleRadioLinkFailure
();
void
handleRrcEstablishmentFailure
();
void
handleActiveCellChange
(
const
Tai
&
prevTai
);
void
handleNasDelivery
(
const
OctetString
&
data
);
};
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/mm/mm.hpp
View file @
b96f4a2b
...
...
@@ -193,9 +193,6 @@ class NasMm
void
deregistrationRequired
(
EDeregCause
cause
);
void
invokeProcedures
();
bool
hasPendingProcedure
();
private:
/* Service Access Point */
void
handleRrcEvent
(
const
NmUeRrcToNas
&
msg
);
};
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/mm/sap.cpp
deleted
100644 → 0
View file @
e593da15
//
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#include "mm.hpp"
#include <utils/common.hpp>
namespace
nr
::
ue
{
void
NasMm
::
handleRrcEvent
(
const
NmUeRrcToNas
&
msg
)
{
if
(
m_mmState
==
EMmState
::
MM_NULL
)
return
;
switch
(
msg
.
present
)
{
case
NmUeRrcToNas
:
:
NAS_DELIVERY
:
{
OctetView
buffer
{
msg
.
nasPdu
};
auto
nasMessage
=
nas
::
DecodeNasMessage
(
buffer
);
if
(
nasMessage
!=
nullptr
)
receiveNasMessage
(
*
nasMessage
);
break
;
}
}
}
}
// namespace nr::ue
src/ue/nts.hpp
View file @
b96f4a2b
...
...
@@ -56,21 +56,6 @@ struct NmUeTunToApp : NtsMessage
}
};
struct
NmUeRrcToNas
:
NtsMessage
{
enum
PR
{
NAS_DELIVERY
,
}
present
;
// NAS_DELIVERY
OctetString
nasPdu
;
explicit
NmUeRrcToNas
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_RRC_TO_NAS
),
present
(
present
)
{
}
};
struct
NmUeRrcToRls
:
NtsMessage
{
enum
PR
...
...
src/ue/rrc/nas.cpp
View file @
b96f4a2b
...
...
@@ -65,9 +65,7 @@ void UeRrcLayer::receiveDownlinkInformationTransfer(const ASN_RRC_DLInformationT
OctetString
nasPdu
=
asn
::
GetOctetString
(
*
msg
.
criticalExtensions
.
choice
.
dlInformationTransfer
->
dedicatedNAS_Message
);
auto
m
=
std
::
make_unique
<
NmUeRrcToNas
>
(
NmUeRrcToNas
::
NAS_DELIVERY
);
m
->
nasPdu
=
std
::
move
(
nasPdu
);
m_base
->
l3Task
->
push
(
std
::
move
(
m
));
m_base
->
l3Task
->
nas
().
handleNasDelivery
(
nasPdu
);
}
}
// namespace nr::ue
\ No newline at end of file
src/utils/nts.hpp
View file @
b96f4a2b
...
...
@@ -48,7 +48,6 @@ enum class NtsMessageType
UE_APP_TO_TUN
,
UE_TUN_TO_APP
,
UE_RRC_TO_NAS
,
UE_RRC_TO_RLS
,
UE_RLS_TO_RRC
,
UE_RLS_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