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
eb8c54b8
Commit
eb8c54b8
authored
Apr 05, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug:handover from ncc=7 to ncc=0
parent
def06a5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/amf-app/.amf_n2.cpp.swp
src/amf-app/.amf_n2.cpp.swp
+0
-0
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+10
-2
No files found.
src/amf-app/.amf_n2.cpp.swp
0 → 100644
View file @
eb8c54b8
File added
src/amf-app/amf_n2.cpp
View file @
eb8c54b8
...
@@ -869,9 +869,17 @@ void amf_n2::handle_itti_message(
...
@@ -869,9 +869,17 @@ void amf_n2::handle_itti_message(
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
amf_n2
::
handle_itti_message
(
itti_handover_required
&
itti_msg
)
{
void
amf_n2
::
handle_itti_message
(
itti_handover_required
&
itti_msg
)
{
int
handover_num_8
=
0
;
ncc
++
;
ncc
++
;
if
(
ncc
>
7
)
if
(
ncc
>
7
)
ncc
=
0
;
{
ncc
=
0
;
handover_num_8
=
handover_num_8
+
1
;
}
//if(ncc == 1)
//{
//ncc++;
//}
unsigned
long
amf_ue_ngap_id
=
itti_msg
.
handvoerRequ
->
getAmfUeNgapId
();
unsigned
long
amf_ue_ngap_id
=
itti_msg
.
handvoerRequ
->
getAmfUeNgapId
();
uint32_t
ran_ue_ngap_id
=
itti_msg
.
handvoerRequ
->
getRanUeNgapId
();
uint32_t
ran_ue_ngap_id
=
itti_msg
.
handvoerRequ
->
getRanUeNgapId
();
std
::
shared_ptr
<
gnb_context
>
gc
;
std
::
shared_ptr
<
gnb_context
>
gc
;
...
@@ -1000,7 +1008,7 @@ void amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
...
@@ -1000,7 +1008,7 @@ void amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
Logger
::
amf_n1
().
debug
(
"uplink count(%d)"
,
amf_n2_ulcount
);
Logger
::
amf_n1
().
debug
(
"uplink count(%d)"
,
amf_n2_ulcount
);
uint8_t
knh
[
32
];
uint8_t
knh
[
32
];
Authentication_5gaka
::
handover_ncc_derive_knh
(
Authentication_5gaka
::
handover_ncc_derive_knh
(
amf_n2_ulcount
,
0x01
,
kamf
,
kgnb
,
knh
,
ncc
);
amf_n2_ulcount
,
0x01
,
kamf
,
kgnb
,
knh
,
ncc
+
8
*
handover_num_8
);
bstring
knh_bs
=
blk2bstr
(
knh
,
32
);
bstring
knh_bs
=
blk2bstr
(
knh
,
32
);
handoverrequest
->
setSecurityContext
(
handoverrequest
->
setSecurityContext
(
ncc
/*NCC count*/
,
(
uint8_t
*
)
bdata
(
knh_bs
));
ncc
/*NCC count*/
,
(
uint8_t
*
)
bdata
(
knh_bs
));
...
...
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