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
977790c3
Commit
977790c3
authored
Jul 16, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up N2 Handover procedure
parent
96e00243
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
58 deletions
+62
-58
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+49
-45
src/amf-app/amf_n2.hpp
src/amf-app/amf_n2.hpp
+1
-1
src/itti/itti_msg.hpp
src/itti/itti_msg.hpp
+1
-1
src/itti/msgs/itti_msg_n2.hpp
src/itti/msgs/itti_msg_n2.hpp
+4
-4
src/ngap/ngap_app/ngap_message_callback.hpp
src/ngap/ngap_app/ngap_message_callback.hpp
+7
-7
No files found.
src/amf-app/amf_n2.cpp
View file @
977790c3
This diff is collapsed.
Click to expand it.
src/amf-app/amf_n2.hpp
View file @
977790c3
...
...
@@ -61,7 +61,7 @@ class amf_n2 : public ngap::ngap_app {
bool
handle_itti_message
(
itti_handover_required
&
itti_msg
);
void
handle_itti_message
(
itti_handover_request_Ack
&
itti_msg
);
void
handle_itti_message
(
itti_handover_notify
&
itti_msg
);
void
handle_itti_message
(
itti_uplink
ranstatsu
transfer
&
itti_msg
);
void
handle_itti_message
(
itti_uplink
_ran_status_
transfer
&
itti_msg
);
void
send_handover_preparation_failure
(
const
unsigned
long
amf_ue_ngap_id
,
const
uint32_t
ran_ue_ngap_id
,
const
sctp_assoc_id_t
&
gnb_assoc_id
);
...
...
src/itti/itti_msg.hpp
View file @
977790c3
...
...
@@ -89,7 +89,7 @@ typedef enum {
HANDOVER_REQUIRED
,
HANDOVER_REQUEST_ACK
,
HANDOVER_NOTIFY
,
UPLINK
RANSTATUS
TRANSFER
,
UPLINK
_RAN_STATUS_
TRANSFER
,
PDU_SESS_RES_SET_RESP
,
TIME_OUT
,
HEALTH_PING
,
...
...
src/itti/msgs/itti_msg_n2.hpp
View file @
977790c3
...
...
@@ -238,12 +238,12 @@ class itti_handover_notify : public itti_msg_n2 {
HandoverNotifyMsg
*
handovernotify
;
};
class
itti_uplink
ranstatsu
transfer
:
public
itti_msg_n2
{
class
itti_uplink
_ran_status_
transfer
:
public
itti_msg_n2
{
public:
itti_uplink
ranstatsu
transfer
(
itti_uplink
_ran_status_
transfer
(
const
task_id_t
origin
,
const
task_id_t
destination
)
:
itti_msg_n2
(
UPLINK
RANSTATUS
TRANSFER
,
origin
,
destination
)
{}
itti_uplink
ranstatsutransfer
(
const
itti_uplinkranstatsu
transfer
&
i
)
:
itti_msg_n2
(
UPLINK
_RAN_STATUS_
TRANSFER
,
origin
,
destination
)
{}
itti_uplink
_ran_status_transfer
(
const
itti_uplink_ran_status_
transfer
&
i
)
:
itti_msg_n2
(
i
)
{}
UplinkRANStatusTransfer
*
uplinkrantransfer
;
};
...
...
src/ngap/ngap_app/ngap_message_callback.hpp
View file @
977790c3
...
...
@@ -872,22 +872,22 @@ int uplink_ran_status_transfer(
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
struct
Ngap_NGAP_PDU
*
message_p
)
{
Logger
::
ngap
().
debug
(
"Sending
itti uplink ran status t
ransfer to TASK_AMF_N2"
);
/*receive uplinkranstatustransfer*/
"Sending
ITTI Uplink RAN Status T
ransfer to TASK_AMF_N2"
);
asn_fprint
(
stderr
,
&
asn_DEF_Ngap_NGAP_PDU
,
message_p
);
UplinkRANStatusTransfer
*
Uplinkranstatustransfer
=
new
UplinkRANStatusTransfer
();
if
(
!
Uplinkranstatustransfer
->
defromPDU
(
message_p
))
{
Logger
::
ngap
().
error
(
"Decoding Uplink
ranstatust
ransfer message error"
);
Logger
::
ngap
().
error
(
"Decoding Uplink
RAN Status T
ransfer message error"
);
return
-
1
;
}
itti_uplink
ranstatsu
transfer
*
itti_uplinkran_sta_tran
=
new
itti_uplink
ranstatsu
transfer
(
TASK_NGAP
,
TASK_AMF_N2
);
itti_uplink
_ran_status_
transfer
*
itti_uplinkran_sta_tran
=
new
itti_uplink
_ran_status_
transfer
(
TASK_NGAP
,
TASK_AMF_N2
);
itti_uplinkran_sta_tran
->
assoc_id
=
assoc_id
;
itti_uplinkran_sta_tran
->
stream
=
stream
;
itti_uplinkran_sta_tran
->
uplinkrantransfer
=
Uplinkranstatustransfer
;
std
::
shared_ptr
<
itti_uplink
ranstatsu
transfer
>
i
=
std
::
shared_ptr
<
itti_uplink
ranstatsu
transfer
>
(
itti_uplinkran_sta_tran
);
std
::
shared_ptr
<
itti_uplink
_ran_status_
transfer
>
i
=
std
::
shared_ptr
<
itti_uplink
_ran_status_
transfer
>
(
itti_uplinkran_sta_tran
);
int
ret
=
itti_inst
->
send_msg
(
i
);
if
(
0
!=
ret
)
{
Logger
::
ngap
().
error
(
...
...
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