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
aec7f601
Commit
aec7f601
authored
Apr 05, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Service reject handling
parent
5a88cd6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
src/ue/nas/mm/service.cpp
src/ue/nas/mm/service.cpp
+22
-0
No files found.
src/ue/nas/mm/service.cpp
View file @
aec7f601
...
@@ -177,9 +177,31 @@ void NasMm::receiveServiceReject(const nas::ServiceReject &msg)
...
@@ -177,9 +177,31 @@ void NasMm::receiveServiceReject(const nas::ServiceReject &msg)
return
;
return
;
}
}
if
(
msg
.
sht
==
nas
::
ESecurityHeaderType
::
NOT_PROTECTED
)
{
m_logger
->
warn
(
"Not protected Service Reject message received"
);
sendMmStatus
(
nas
::
EMmCause
::
UNSPECIFIED_PROTOCOL_ERROR
);
return
;
}
// "On receipt of the SERVICE REJECT message, if the UE is in state 5GMM-SERVICE-REQUEST-INITIATED and the message
// is integrity protected, the UE shall reset the service request attempt counter and stop timer T3517 if running."
m_serCounter
=
0
;
m_timers
->
t3517
.
stop
();
auto
cause
=
msg
.
mmCause
.
value
;
auto
cause
=
msg
.
mmCause
.
value
;
m_logger
->
err
(
"Service Request failed [%s]"
,
nas
::
utils
::
EnumToString
(
cause
));
m_logger
->
err
(
"Service Request failed [%s]"
,
nas
::
utils
::
EnumToString
(
cause
));
// Handle PDU session status
if
(
msg
.
pduSessionStatus
.
has_value
()
&&
msg
.
sht
!=
nas
::
ESecurityHeaderType
::
NOT_PROTECTED
)
{
auto
statusInUe
=
m_sm
->
getPduSessionStatus
();
auto
statusInNw
=
msg
.
pduSessionStatus
->
psi
;
for
(
int
i
=
1
;
i
<
16
;
i
++
)
if
(
statusInUe
[
i
]
&&
!
statusInNw
[
i
])
m_sm
->
localReleaseSession
(
i
);
}
// Handle EAP message
// Handle EAP message
if
(
msg
.
eapMessage
.
has_value
())
if
(
msg
.
eapMessage
.
has_value
())
{
{
...
...
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