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
b2aad245
Commit
b2aad245
authored
Mar 17, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
54e7660f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
64 deletions
+56
-64
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+51
-58
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+5
-5
src/amf-app/amf_profile.cpp
src/amf-app/amf_profile.cpp
+0
-1
No files found.
src/amf-app/amf_n1.cpp
View file @
b2aad245
This diff is collapsed.
Click to expand it.
src/amf-app/amf_n2.cpp
View file @
b2aad245
...
...
@@ -1585,14 +1585,14 @@ bool amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
Logger
::
amf_n2
().
error
(
"No Security Context found"
);
return
false
;
}
nas_secu_ctx
security_ctx
=
nc
->
security_ctx
.
value
();
uint8_t
*
kamf
=
nc
->
kamf
[
security_ctx
.
vector_pointer
];
uint8_t
*
kamf
=
nc
->
kamf
[
nc
->
security_ctx
.
value
()
.
vector_pointer
];
uint8_t
kgnb
[
32
];
uint32_t
ulcount
=
security_ctx
.
ul_count
.
seq_num
|
(
security_ctx
.
ul_count
.
overflow
<<
8
);
uint32_t
ulcount
=
nc
->
security_ctx
.
value
().
ul_count
.
seq_num
|
(
nc
->
security_ctx
.
value
()
.
ul_count
.
overflow
<<
8
);
Logger
::
amf_n2
().
debug
(
"Handover Required, Uplink count (%d)"
,
security_ctx
.
ul_count
.
seq_num
);
"Handover Required, Uplink count (%d)"
,
nc
->
security_ctx
.
value
().
ul_count
.
seq_num
);
uint8_t
knh
[
32
];
Authentication_5gaka
::
handover_ncc_derive_knh
(
ulcount
,
0x01
,
kamf
,
kgnb
,
knh
,
unc
->
ncc
);
...
...
src/amf-app/amf_profile.cpp
View file @
b2aad245
...
...
@@ -203,7 +203,6 @@ void nf_profile::to_json(nlohmann::json& data) const {
nlohmann
::
json
tmp
=
{};
tmp
[
"sst"
]
=
s
.
sST
;
tmp
[
"sd"
]
=
s
.
sD
;
;
data
[
"sNssais"
].
push_back
(
tmp
);
}
// ipv4_addresses
...
...
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