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
7e0d0a7e
Commit
7e0d0a7e
authored
Jul 02, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup for HO procedure
parent
82d32d76
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
76 deletions
+78
-76
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+67
-65
src/itti/msgs/itti_msg_n2.hpp
src/itti/msgs/itti_msg_n2.hpp
+1
-1
src/ngap/ngap_app/ngap_message_callback.hpp
src/ngap/ngap_app/ngap_message_callback.hpp
+10
-10
No files found.
src/amf-app/amf_n2.cpp
View file @
7e0d0a7e
This diff is collapsed.
Click to expand it.
src/itti/msgs/itti_msg_n2.hpp
View file @
7e0d0a7e
...
@@ -218,7 +218,7 @@ class itti_handover_required : public itti_msg_n2 {
...
@@ -218,7 +218,7 @@ class itti_handover_required : public itti_msg_n2 {
itti_handover_required
(
const
task_id_t
origin
,
const
task_id_t
destination
)
itti_handover_required
(
const
task_id_t
origin
,
const
task_id_t
destination
)
:
itti_msg_n2
(
HANDOVER_REQUIRED
,
origin
,
destination
)
{}
:
itti_msg_n2
(
HANDOVER_REQUIRED
,
origin
,
destination
)
{}
itti_handover_required
(
const
itti_handover_required
&
i
)
:
itti_msg_n2
(
i
)
{}
itti_handover_required
(
const
itti_handover_required
&
i
)
:
itti_msg_n2
(
i
)
{}
HandoverRequiredMsg
*
hand
voerRequ
;
HandoverRequiredMsg
*
hand
overReq
;
};
};
class
itti_handover_request_Ack
:
public
itti_msg_n2
{
class
itti_handover_request_Ack
:
public
itti_msg_n2
{
...
...
src/ngap/ngap_app/ngap_message_callback.hpp
View file @
7e0d0a7e
...
@@ -543,7 +543,7 @@ int downlink_ue_associated_nappa_transport(
...
@@ -543,7 +543,7 @@ int downlink_ue_associated_nappa_transport(
int
handover_cancel
(
int
handover_cancel
(
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
struct
Ngap_NGAP_PDU
*
message_p
)
{
struct
Ngap_NGAP_PDU
*
message_p
)
{
Logger
::
ngap
().
debug
(
"Sending
itti handover c
ancel to TASK_AMF_N2"
);
Logger
::
ngap
().
debug
(
"Sending
ITTI Handover C
ancel to TASK_AMF_N2"
);
return
0
;
return
0
;
}
}
...
@@ -551,18 +551,18 @@ int handover_cancel(
...
@@ -551,18 +551,18 @@ int handover_cancel(
int
handover_preparation
(
int
handover_preparation
(
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
struct
Ngap_NGAP_PDU
*
message_p
)
{
struct
Ngap_NGAP_PDU
*
message_p
)
{
Logger
::
ngap
().
debug
(
"Sending
itti handover p
reparation to TASK_AMF_N2"
);
Logger
::
ngap
().
debug
(
"Sending
ITTI Handover P
reparation to TASK_AMF_N2"
);
asn_fprint
(
stderr
,
&
asn_DEF_Ngap_NGAP_PDU
,
message_p
);
asn_fprint
(
stderr
,
&
asn_DEF_Ngap_NGAP_PDU
,
message_p
);
HandoverRequiredMsg
*
handoverrequired
=
new
HandoverRequiredMsg
();
HandoverRequiredMsg
*
handover
_
required
=
new
HandoverRequiredMsg
();
if
(
!
handoverrequired
->
decodefrompdu
(
message_p
))
{
if
(
!
handover
_
required
->
decodefrompdu
(
message_p
))
{
Logger
::
ngap
().
error
(
"
d
ecoding HandoverRequired message error"
);
Logger
::
ngap
().
error
(
"
D
ecoding HandoverRequired message error"
);
return
-
1
;
return
-
1
;
}
}
itti_handover_required
*
itti_handover_requ
=
itti_handover_required
*
itti_handover_requ
=
new
itti_handover_required
(
TASK_NGAP
,
TASK_AMF_N2
);
new
itti_handover_required
(
TASK_NGAP
,
TASK_AMF_N2
);
itti_handover_requ
->
assoc_id
=
assoc_id
;
itti_handover_requ
->
assoc_id
=
assoc_id
;
itti_handover_requ
->
stream
=
stream
;
itti_handover_requ
->
stream
=
stream
;
itti_handover_requ
->
hand
voerRequ
=
handover
required
;
itti_handover_requ
->
hand
overReq
=
handover_
required
;
std
::
shared_ptr
<
itti_handover_required
>
i
=
std
::
shared_ptr
<
itti_handover_required
>
i
=
std
::
shared_ptr
<
itti_handover_required
>
(
itti_handover_requ
);
std
::
shared_ptr
<
itti_handover_required
>
(
itti_handover_requ
);
int
ret
=
itti_inst
->
send_msg
(
i
);
int
ret
=
itti_inst
->
send_msg
(
i
);
...
@@ -578,11 +578,11 @@ int handover_preparation(
...
@@ -578,11 +578,11 @@ int handover_preparation(
int
handover_notification
(
int
handover_notification
(
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
struct
Ngap_NGAP_PDU
*
message_p
)
{
struct
Ngap_NGAP_PDU
*
message_p
)
{
Logger
::
ngap
().
debug
(
"Sending
itti h
andover Notification to TASK_AMF_N2"
);
Logger
::
ngap
().
debug
(
"Sending
ITTI H
andover Notification to TASK_AMF_N2"
);
asn_fprint
(
stderr
,
&
asn_DEF_Ngap_NGAP_PDU
,
message_p
);
asn_fprint
(
stderr
,
&
asn_DEF_Ngap_NGAP_PDU
,
message_p
);
HandoverNotifyMsg
*
handoverNotify
=
new
HandoverNotifyMsg
();
HandoverNotifyMsg
*
handoverNotify
=
new
HandoverNotifyMsg
();
if
(
!
handoverNotify
->
decodefrompdu
(
message_p
))
{
if
(
!
handoverNotify
->
decodefrompdu
(
message_p
))
{
Logger
::
ngap
().
error
(
"
decoding h
andoverNotify message error"
);
Logger
::
ngap
().
error
(
"
Decoding H
andoverNotify message error"
);
return
-
1
;
return
-
1
;
}
}
itti_handover_notify
*
itti_handover_NOTIFY
=
itti_handover_notify
*
itti_handover_NOTIFY
=
...
...
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