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
74b48ea3
Commit
74b48ea3
authored
Jan 25, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for PDU session release without context
parent
a3f7ac79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+6
-0
src/nas/ies/UENetworkCapability.cpp
src/nas/ies/UENetworkCapability.cpp
+4
-2
src/nas/ies/UESecurityCapability.cpp
src/nas/ies/UESecurityCapability.cpp
+2
-1
No files found.
src/amf-app/amf_n1.cpp
View file @
74b48ea3
...
...
@@ -730,6 +730,12 @@ void amf_n1::identity_response_handle(
if
(
uc
!=
nullptr
)
{
uc
->
supi
=
"imsi-"
+
supi
;
// associate SUPI with UC
// Verify if there's PDU session info in the old context
if
(
amf_app_inst
->
is_supi_2_ue_context
(
supi
))
{
std
::
shared_ptr
<
ue_context
>
old_uc
=
{};
old_uc
=
amf_app_inst
->
supi_2_ue_context
(
supi
);
uc
->
copy_pdu_sessions
(
old_uc
);
}
amf_app_inst
->
set_supi_2_ue_context
(
uc
->
supi
,
uc
);
Logger
::
amf_n1
().
debug
(
"Update UC context, SUPI %s"
,
uc
->
supi
.
c_str
());
}
...
...
src/nas/ies/UENetworkCapability.cpp
View file @
74b48ea3
...
...
@@ -101,7 +101,8 @@ int UENetworkCapability::Encode(uint8_t* buf, int len) {
// TODO: Encode the rest as spare for now
uint8_t
spare
=
0
;
for
(
int
i
=
0
;
i
<
(
ie_len
-
encoded_size
);
i
++
)
{
int
spare_len
=
ie_len
-
encoded_size
;
for
(
int
i
=
0
;
i
<
spare_len
;
i
++
)
{
ENCODE_U8
(
buf
+
encoded_size
,
spare
,
encoded_size
);
}
...
...
@@ -136,7 +137,8 @@ int UENetworkCapability::Decode(uint8_t* buf, int len, bool is_iei) {
// TODO: decode the rest as spare for now
uint8_t
spare
=
0
;
for
(
int
i
=
0
;
i
<
(
ie_len
-
decoded_size
);
i
++
)
{
int
spare_len
=
ie_len
-
decoded_size
;
for
(
int
i
=
0
;
i
<
spare_len
;
i
++
)
{
ENCODE_U8
(
buf
+
decoded_size
,
spare
,
decoded_size
);
}
...
...
src/nas/ies/UESecurityCapability.cpp
View file @
74b48ea3
...
...
@@ -227,7 +227,8 @@ int UESecurityCapability::Decode(uint8_t* buf, int len, bool is_iei) {
// TODO: decode the rest as spare for now
uint8_t
spare
=
0
;
for
(
int
i
=
0
;
i
<
(
ie_len
-
decoded_size
);
i
++
)
{
int
spare_len
=
ie_len
-
decoded_size
;
for
(
int
i
=
0
;
i
<
spare_len
;
i
++
)
{
DECODE_U8
(
buf
+
decoded_size
,
spare
,
decoded_size
);
}
...
...
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