Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-AMF
Commits
91296678
Commit
91296678
authored
Oct 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tentative fix for ngKSI already in use
parent
3ea8f35a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+21
-0
src/nas/common/3gpp_ts24501.hpp
src/nas/common/3gpp_ts24501.hpp
+1
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
91296678
...
...
@@ -2010,6 +2010,27 @@ void amf_n1::authentication_failure_handle(
}
// authentication_failure_synch_failure_handle(nc, auts);
}
break
;
case
_5GMM_CAUSE_NGKSI_ALREADY_IN_USE
:
{
Logger
::
amf_n1
().
debug
(
"ngKSI already in use, select a new ngKSI and restart the "
"authentication procedure!"
);
// select new ngKSI and resend Authentication Request
ngksi_t
ngksi
=
(
nc
.
get
()
->
ngKsi
+
1
)
%
(
NGKSI_MAX_VALUE
+
1
);
// To be verified
nc
.
get
()
->
ngKsi
=
ngksi
;
int
vindex
=
nc
.
get
()
->
security_ctx
->
vector_pointer
;
if
(
!
start_authentication_procedure
(
nc
,
vindex
,
nc
.
get
()
->
ngKsi
))
{
Logger
::
amf_n1
().
error
(
"Start authentication procedure failure, reject..."
);
Logger
::
amf_n1
().
error
(
"Ran_ue_ngap_id 0x%x"
,
nc
.
get
()
->
ran_ue_ngap_id
);
response_registration_reject_msg
(
_5GMM_CAUSE_INVALID_MANDATORY_INFO
,
nc
.
get
()
->
ran_ue_ngap_id
,
nc
.
get
()
->
amf_ue_ngap_id
);
}
else
{
// update mm state -> COMMON-PROCEDURE-INITIATED
}
}
break
;
}
}
...
...
src/nas/common/3gpp_ts24501.hpp
View file @
91296678
...
...
@@ -135,6 +135,7 @@
#define _5GMM_CAUSE_SYNCH_FAILURE 0b00010101
#define _5GMM_CAUSE_IMPLICITLY_DE_REGISTERED 10
#define _5GMM_CAUSE_UE_IDENTITY_CANNOT_BE_DERIVED 9
#define _5GMM_CAUSE_NGKSI_ALREADY_IN_USE 0b01000111 // 71
// A.5 Causes related to invalid messages
//------------------------------------------------------------------------------
#define _5GMM_CAUSE_SEMANTICALLY_INCORRECT 95
...
...
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