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
59cd46c9
Commit
59cd46c9
authored
Apr 29, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for PDU Session context
parent
c84fd646
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+19
-2
src/secu_algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
...algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
+1
-1
No files found.
src/amf-app/amf_n1.cpp
View file @
59cd46c9
...
...
@@ -447,7 +447,7 @@ void amf_n1::uplink_nas_msg_handle(
ran_ue_ngap_id
,
amf_ue_ngap_id
,
plain_msg
);
}
break
;
case
IDENTITY_RESPONSE
:
{
Logger
::
amf_n1
().
debug
(
"received identity response mess
ga
e , handle ..."
);
Logger
::
amf_n1
().
debug
(
"received identity response mess
ag
e , handle ..."
);
identity_response_handle
(
ran_ue_ngap_id
,
amf_ue_ngap_id
,
plain_msg
);
}
break
;
case
REGISTRATION_COMPLETE
:
{
...
...
@@ -500,7 +500,7 @@ void amf_n1::uplink_nas_msg_handle(
ran_ue_ngap_id
,
amf_ue_ngap_id
,
plain_msg
);
}
break
;
case
IDENTITY_RESPONSE
:
{
Logger
::
amf_n1
().
debug
(
"received identity response mess
ga
e , handle ..."
);
Logger
::
amf_n1
().
debug
(
"received identity response mess
ag
e , handle ..."
);
identity_response_handle
(
ran_ue_ngap_id
,
amf_ue_ngap_id
,
plain_msg
);
}
break
;
case
REGISTRATION_COMPLETE
:
{
...
...
@@ -561,6 +561,22 @@ void amf_n1::identity_response_handle(
supi
=
imsi
.
mcc
+
imsi
.
mnc
+
imsi
.
msin
;
Logger
::
amf_n1
().
debug
(
"identity response : suci (%s)"
,
supi
.
c_str
());
}
string
ue_context_key
=
"app_ue_ranid_"
+
to_string
(
ran_ue_ngap_id
)
+
":amfid_"
+
to_string
(
amf_ue_ngap_id
);
if
(
amf_app_inst
->
is_ran_amf_id_2_ue_context
(
ue_context_key
))
{
std
::
shared_ptr
<
ue_context
>
uc
;
uc
=
amf_app_inst
->
ran_amf_id_2_ue_context
(
ue_context_key
);
// Update UE context
if
(
uc
.
get
()
!=
nullptr
)
{
uc
.
get
()
->
supi
=
supi
;
// associate SUPI with UC
amf_app_inst
->
set_supi_2_ue_context
(
supi
,
uc
);
Logger
::
amf_n1
().
debug
(
"Update UC context, SUPI %s"
,
supi
.
c_str
());
}
}
std
::
shared_ptr
<
nas_context
>
nc
;
if
(
is_amf_ue_id_2_nas_context
(
amf_ue_ngap_id
))
{
nc
=
amf_ue_id_2_nas_context
(
amf_ue_ngap_id
);
...
...
@@ -922,6 +938,7 @@ void amf_n1::registration_request_handle(
nc
.
get
()
->
is_5g_guti_present
=
true
;
nc
.
get
()
->
to_be_register_by_new_suci
=
true
;
nc
.
get
()
->
ngKsi
=
100
&
0xf
;
// nc.get()->imsi =
// supi2amfId[("imsi-"+nc.get()->imsi)] = amf_ue_ngap_id;
// supi2ranId[("imsi-"+nc.get()->imsi)] = ran_ue_ngap_id;
}
...
...
src/secu_algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
View file @
59cd46c9
...
...
@@ -540,7 +540,7 @@ uint8_t* Authentication_5gaka::sqn_ms_derive(
uint8_t
*
mac_s
=
NULL
;
uint8_t
mac_s_computed
[
MAC_S_LENGTH
]
=
{
0
};
uint8_t
*
sqn_ms
=
NULL
;
uint8_t
amf
[
2
]
=
{
0x
8
0
,
0x00
};
uint8_t
amf
[
2
]
=
{
0x
0
0
,
0x00
};
int
i
=
0
;
conc_sqn_ms
=
auts
;
...
...
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