Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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-SMF
Commits
2cb06da6
Commit
2cb06da6
authored
Sep 04, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test_orion' into 'pfcp_source_port_8805'
Test orion See merge request oai/cn5g/oai-cn5g-smf!20
parents
ccb080e2
ad2259d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
src/pfcp/pfcp.cpp
src/pfcp/pfcp.cpp
+1
-1
src/smf_app/smf_n4.cpp
src/smf_app/smf_n4.cpp
+10
-2
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+4
-2
No files found.
src/pfcp/pfcp.cpp
View file @
2cb06da6
...
@@ -49,7 +49,7 @@ pfcp_l4_stack::pfcp_l4_stack(const string& ip_address, const unsigned short port
...
@@ -49,7 +49,7 @@ pfcp_l4_stack::pfcp_l4_stack(const string& ip_address, const unsigned short port
timespec
ts
;
timespec
ts
;
clock_gettime
(
CLOCK_REALTIME
,
&
ts
);
clock_gettime
(
CLOCK_REALTIME
,
&
ts
);
seq_num
=
(
uint32_t
)
ts
.
tv_nsec
&
0x7FFFFFFF
;
seq_num
=
0
;
//
(uint32_t)ts.tv_nsec & 0x7FFFFFFF;
restart_counter
=
0
;
restart_counter
=
0
;
udp_s_8805
.
start_receive
(
this
,
sched_params
);
udp_s_8805
.
start_receive
(
this
,
sched_params
);
udp_s_allocated
.
start_receive
(
this
,
sched_params
);
udp_s_allocated
.
start_receive
(
this
,
sched_params
);
...
...
src/smf_app/smf_n4.cpp
View file @
2cb06da6
...
@@ -215,7 +215,12 @@ smf_n4::smf_n4()
...
@@ -215,7 +215,12 @@ smf_n4::smf_n4()
std
::
chrono
::
system_clock
::
now
();
std
::
chrono
::
system_clock
::
now
();
std
::
time_t
now_c
=
std
::
chrono
::
system_clock
::
to_time_t
(
now
);
std
::
time_t
now_c
=
std
::
chrono
::
system_clock
::
to_time_t
(
now
);
std
::
time_t
ellapsed
=
now_c
-
time_epoch
;
std
::
time_t
ellapsed
=
now_c
-
time_epoch
;
recovery_time_stamp
=
ellapsed
;
//recovery_time_stamp = ellapsed;
//test new way to calculate recovery_time_stamp
std
::
time_t
time_epoch_ntp
=
std
::
time
(
nullptr
);
uint64_t
tv_ntp
=
time_epoch_ntp
+
SECONDS_SINCE_FIRST_EPOCH
;
recovery_time_stamp
=
tv_ntp
;
// TODO may load this from config
// TODO may load this from config
cp_function_features
=
{
};
cp_function_features
=
{
};
...
@@ -560,9 +565,12 @@ void smf_n4::send_n4_msg(itti_n4_session_report_response &i) {
...
@@ -560,9 +565,12 @@ void smf_n4::send_n4_msg(itti_n4_session_report_response &i) {
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
smf_n4
::
send_heartbeat_request
(
std
::
shared_ptr
<
pfcp_association
>
&
a
)
{
void
smf_n4
::
send_heartbeat_request
(
std
::
shared_ptr
<
pfcp_association
>
&
a
)
{
std
::
time_t
time_epoch
=
std
::
time
(
nullptr
);
uint64_t
tv_ntp
=
time_epoch
+
SECONDS_SINCE_FIRST_EPOCH
;
pfcp
::
pfcp_heartbeat_request
h
=
{
};
pfcp
::
pfcp_heartbeat_request
h
=
{
};
pfcp
::
recovery_time_stamp_t
r
=
{
.
recovery_time_stamp
=
pfcp
::
recovery_time_stamp_t
r
=
{
.
recovery_time_stamp
=
(
uint32_t
)
recovery_time_stam
p
};
(
uint32_t
)
tv_nt
p
};
h
.
set
(
r
);
h
.
set
(
r
);
pfcp
::
node_id_t
&
node_id
=
a
->
node_id
;
pfcp
::
node_id_t
&
node_id
=
a
->
node_id
;
...
...
src/smf_app/smf_procedure.cpp
View file @
2cb06da6
...
@@ -1346,9 +1346,11 @@ void session_release_sm_context_procedure::handle_itti_msg(
...
@@ -1346,9 +1346,11 @@ void session_release_sm_context_procedure::handle_itti_msg(
problem_details
.
setCause
(
problem_details
.
setCause
(
pdu_session_application_error_e2str
[
PDU_SESSION_APPLICATION_ERROR_NETWORK_FAILURE
]);
pdu_session_application_error_e2str
[
PDU_SESSION_APPLICATION_ERROR_NETWORK_FAILURE
]);
//trigger to send reply to AMF
//trigger to send reply to AMF
/*
smf_app_inst->trigger_http_response(
smf_app_inst->trigger_http_response(
http_status_code_e::HTTP_STATUS_CODE_406_NOT_ACCEPTABLE,
http_status_code_e::HTTP_STATUS_CODE_406_NOT_ACCEPTABLE,
n11_triggered_pending->pid, N11_SESSION_RELEASE_SM_CONTEXT_RESPONSE);
n11_triggered_pending->pid, N11_SESSION_RELEASE_SM_CONTEXT_RESPONSE);
*/
}
}
//TODO:
//TODO:
...
...
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