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
b588f769
Commit
b588f769
authored
Apr 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plain NAS messages are accepted for some types
parent
049eab5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
src/ue/nas/mm/transport.cpp
src/ue/nas/mm/transport.cpp
+17
-6
No files found.
src/ue/nas/mm/transport.cpp
View file @
b588f769
...
@@ -18,9 +18,20 @@ namespace nr::ue
...
@@ -18,9 +18,20 @@ namespace nr::ue
static
bool
IsInitialNasMessage
(
const
nas
::
PlainMmMessage
&
msg
)
static
bool
IsInitialNasMessage
(
const
nas
::
PlainMmMessage
&
msg
)
{
{
return
msg
.
messageType
==
nas
::
EMessageType
::
REGISTRATION_REQUEST
||
auto
msgType
=
msg
.
messageType
;
msg
.
messageType
==
nas
::
EMessageType
::
DEREGISTRATION_REQUEST_UE_ORIGINATING
||
return
msgType
==
nas
::
EMessageType
::
REGISTRATION_REQUEST
||
msg
.
messageType
==
nas
::
EMessageType
::
SERVICE_REQUEST
;
msgType
==
nas
::
EMessageType
::
DEREGISTRATION_REQUEST_UE_ORIGINATING
||
msgType
==
nas
::
EMessageType
::
SERVICE_REQUEST
;
}
static
bool
IsAcceptedWithoutIntegrity
(
const
nas
::
PlainMmMessage
&
msg
)
{
auto
msgType
=
msg
.
messageType
;
return
msgType
==
nas
::
EMessageType
::
IDENTITY_REQUEST
||
msgType
==
nas
::
EMessageType
::
AUTHENTICATION_REQUEST
||
msgType
==
nas
::
EMessageType
::
AUTHENTICATION_RESULT
||
msgType
==
nas
::
EMessageType
::
AUTHENTICATION_REJECT
||
msgType
==
nas
::
EMessageType
::
REGISTRATION_REJECT
||
msgType
==
nas
::
EMessageType
::
DEREGISTRATION_ACCEPT_UE_TERMINATED
||
msgType
==
nas
::
EMessageType
::
SERVICE_REJECT
;
}
}
void
NasMm
::
sendNasMessage
(
const
nas
::
PlainMmMessage
&
msg
)
void
NasMm
::
sendNasMessage
(
const
nas
::
PlainMmMessage
&
msg
)
...
@@ -75,7 +86,7 @@ void NasMm::receiveNasMessage(const nas::NasMessage &msg)
...
@@ -75,7 +86,7 @@ void NasMm::receiveNasMessage(const nas::NasMessage &msg)
{
{
// If any NAS signalling message is received as not integrity protected even though the secure exchange of NAS
// If any NAS signalling message is received as not integrity protected even though the secure exchange of NAS
// messages has been established by the network, then the NAS shall discard this message
// messages has been established by the network, then the NAS shall discard this message
if
(
m_usim
->
m_currentNsCtx
)
if
(
m_usim
->
m_currentNsCtx
&&
!
IsAcceptedWithoutIntegrity
((
const
nas
::
PlainMmMessage
&
)
mmMsg
)
)
{
{
m_logger
->
err
(
m_logger
->
err
(
"Not integrity protected NAS message received after security establishment. Ignoring received "
"Not integrity protected NAS message received after security establishment. Ignoring received "
...
...
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