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
f1e28191
Commit
f1e28191
authored
Apr 26, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T3516 handling
parent
c2122e03
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
0 deletions
+40
-0
src/ue/nas/mm/auth.cpp
src/ue/nas/mm/auth.cpp
+5
-0
src/ue/nas/mm/base.cpp
src/ue/nas/mm/base.cpp
+15
-0
src/ue/nas/mm/register.cpp
src/ue/nas/mm/register.cpp
+10
-0
src/ue/nas/mm/security.cpp
src/ue/nas/mm/security.cpp
+5
-0
src/ue/nas/mm/service.cpp
src/ue/nas/mm/service.cpp
+5
-0
No files found.
src/ue/nas/mm/auth.cpp
View file @
f1e28191
...
...
@@ -371,6 +371,11 @@ void NasMm::receiveAuthenticationReject(const nas::AuthenticationReject &msg)
{
m_logger
->
err
(
"Authentication Reject received."
);
// The RAND and RES* values stored in the ME shall be deleted and timer T3516, if running, shall be stopped
m_usim
->
m_rand
=
{};
m_usim
->
m_resStar
=
{};
m_timers
->
t3516
.
stop
();
if
(
msg
.
eapMessage
.
has_value
()
&&
msg
.
eapMessage
->
eap
->
code
!=
eap
::
ECode
::
FAILURE
)
{
m_logger
->
warn
(
"Network sent EAP with inconvenient type in AuthenticationReject, ignoring EAP IE."
);
...
...
src/ue/nas/mm/base.cpp
View file @
f1e28191
...
...
@@ -232,6 +232,15 @@ void NasMm::onSwitchMmState(EMmState oldState, EMmState newState, EMmSubState ol
m_usim
->
m_nonCurrentNsCtx
=
{};
}
}
// If the UE enters the 5GMM state 5GMM-DEREGISTERED or 5GMM-NULL,
// The RAND and RES* values stored in the ME shall be deleted and timer T3516, if running, shall be stopped
if
(
newState
==
EMmState
::
MM_DEREGISTERED
||
newState
==
EMmState
::
MM_NULL
)
{
m_usim
->
m_rand
=
{};
m_usim
->
m_resStar
=
{};
m_timers
->
t3516
.
stop
();
}
}
void
NasMm
::
onSwitchRmState
(
ERmState
oldState
,
ERmState
newState
)
...
...
@@ -278,6 +287,12 @@ void NasMm::onSwitchCmState(ECmState oldState, ECmState newState)
nas
::
ESwitchOff
::
NORMAL_DE_REGISTRATION
)
switchMmState
(
EMmState
::
MM_DEREGISTERED
,
EMmSubState
::
MM_DEREGISTERED_NA
);
}
// If the UE enters the 5GMM-IDLE, the RAND and RES* values stored
// in the ME shall be deleted and timer T3516, if running, shall be stopped
m_usim
->
m_rand
=
{};
m_usim
->
m_resStar
=
{};
m_timers
->
t3516
.
stop
();
}
}
...
...
src/ue/nas/mm/register.cpp
View file @
f1e28191
...
...
@@ -220,6 +220,11 @@ void NasMm::receiveRegistrationAccept(const nas::RegistrationAccept &msg)
receiveInitialRegistrationAccept
(
msg
);
else
receiveMobilityRegistrationAccept
(
msg
);
// The RAND and RES* values stored in the ME shall be deleted and timer T3516, if running, shall be stopped
m_usim
->
m_rand
=
{};
m_usim
->
m_resStar
=
{};
m_timers
->
t3516
.
stop
();
}
void
NasMm
::
receiveInitialRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
)
...
...
@@ -451,6 +456,11 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
receiveInitialRegistrationReject
(
msg
);
else
receiveMobilityRegistrationReject
(
msg
);
// The RAND and RES* values stored in the ME shall be deleted and timer T3516, if running, shall be stopped
m_usim
->
m_rand
=
{};
m_usim
->
m_resStar
=
{};
m_timers
->
t3516
.
stop
();
}
void
NasMm
::
receiveInitialRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
)
...
...
src/ue/nas/mm/security.cpp
View file @
f1e28191
...
...
@@ -59,6 +59,11 @@ void NasMm::receiveSecurityModeCommand(const nas::SecurityModeCommand &msg)
m_logger
->
err
(
"Rejecting Security Mode Command with cause [%s]"
,
nas
::
utils
::
EnumToString
(
cause
));
};
// The RAND and RES* values stored in the ME shall be deleted and timer T3516, if running, shall be stopped
m_usim
->
m_rand
=
{};
m_usim
->
m_resStar
=
{};
m_timers
->
t3516
.
stop
();
// ============================== Check the received ngKSI ==============================
bool
locallyDerived
=
false
;
...
...
src/ue/nas/mm/service.cpp
View file @
f1e28191
...
...
@@ -212,6 +212,11 @@ void NasMm::receiveServiceReject(const nas::ServiceReject &msg)
m_serCounter
=
0
;
m_timers
->
t3517
.
stop
();
// The RAND and RES* values stored in the ME shall be deleted and timer T3516, if running, shall be stopped
m_usim
->
m_rand
=
{};
m_usim
->
m_resStar
=
{};
m_timers
->
t3516
.
stop
();
auto
cause
=
msg
.
mmCause
.
value
;
m_logger
->
err
(
"Service Reject received with cause [%s]"
,
nas
::
utils
::
EnumToString
(
cause
));
...
...
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