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
593cf973
Commit
593cf973
authored
Feb 18, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
4ef20876
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
27 additions
and
1461 deletions
+27
-1461
src/common/3gpp_29.274.h
src/common/3gpp_29.274.h
+0
-1450
src/common/utils/3gpp_conversions.hpp
src/common/utils/3gpp_conversions.hpp
+1
-1
src/pfcp/pfcp.cpp
src/pfcp/pfcp.cpp
+3
-2
src/pfcp/pfcp.hpp
src/pfcp/pfcp.hpp
+1
-2
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+14
-1
src/smf_app/smf_app.hpp
src/smf_app/smf_app.hpp
+0
-1
src/smf_app/smf_config.hpp
src/smf_app/smf_config.hpp
+0
-1
src/smf_app/smf_context.hpp
src/smf_app/smf_context.hpp
+0
-1
src/smf_app/smf_msg.hpp
src/smf_app/smf_msg.hpp
+0
-1
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+7
-0
src/smf_app/smf_pfcp_association.hpp
src/smf_app/smf_pfcp_association.hpp
+1
-0
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+0
-1
No files found.
src/common/3gpp_29.274.h
View file @
593cf973
This diff is collapsed.
Click to expand it.
src/common/utils/3gpp_conversions.hpp
View file @
593cf973
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#ifndef FILE_3GPP_CONVERSIONS_HPP_SEEN
#ifndef FILE_3GPP_CONVERSIONS_HPP_SEEN
#define FILE_3GPP_CONVERSIONS_HPP_SEEN
#define FILE_3GPP_CONVERSIONS_HPP_SEEN
#include "3gpp_29.274.h"
#include "3gpp_29.244.h"
#include "3gpp_29.244.h"
#include "3gpp_24.501.h"
#include "3gpp_24.501.h"
#include "endpoint.hpp"
#include "endpoint.hpp"
...
...
src/pfcp/pfcp.cpp
View file @
593cf973
...
@@ -873,7 +873,7 @@ void pfcp_l4_stack::send_response(
...
@@ -873,7 +873,7 @@ void pfcp_l4_stack::send_response(
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
pfcp_l4_stack
::
notify_ul_error
(
void
pfcp_l4_stack
::
notify_ul_error
(
const
pfcp_procedure
&
p
,
const
::
cause_value_e
cause
)
{
const
pfcp_procedure
&
p
,
const
cause_value_e
cause
)
{
Logger
::
pfcp
().
trace
(
Logger
::
pfcp
().
trace
(
"notify_ul_error proc %"
PRId64
" cause %d"
,
p
.
trxn_id
,
cause
);
"notify_ul_error proc %"
PRId64
" cause %d"
,
p
.
trxn_id
,
cause
);
}
}
...
@@ -908,7 +908,8 @@ void pfcp_l4_stack::time_out_event(
...
@@ -908,7 +908,8 @@ void pfcp_l4_stack::time_out_event(
}
else
{
}
else
{
// abort procedure
// abort procedure
notify_ul_error
(
notify_ul_error
(
it_proc
->
second
,
::
cause_value_e
::
REMOTE_PEER_NOT_RESPONDING
);
it_proc
->
second
,
cause_value_e
::
CAUSE_VALUE_PFCP_ENTITY_IN_CONGESTION
);
}
}
}
}
}
else
{
}
else
{
...
...
src/pfcp/pfcp.hpp
View file @
593cf973
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#ifndef FILE_PFCP_HPP_SEEN
#ifndef FILE_PFCP_HPP_SEEN
#define FILE_PFCP_HPP_SEEN
#define FILE_PFCP_HPP_SEEN
#include "3gpp_29.274.h"
#include "3gpp_29.244.hpp"
#include "3gpp_29.244.hpp"
#include "itti.hpp"
#include "itti.hpp"
#include "udp.hpp"
#include "udp.hpp"
...
@@ -120,7 +119,7 @@ class pfcp_l4_stack : public udp_application {
...
@@ -120,7 +119,7 @@ class pfcp_l4_stack : public udp_application {
void
stop_msg_retry_timer
(
pfcp_procedure
&
p
);
void
stop_msg_retry_timer
(
pfcp_procedure
&
p
);
void
stop_msg_retry_timer
(
timer_id_t
&
t
);
void
stop_msg_retry_timer
(
timer_id_t
&
t
);
void
stop_proc_cleanup_timer
(
pfcp_procedure
&
p
);
void
stop_proc_cleanup_timer
(
pfcp_procedure
&
p
);
void
notify_ul_error
(
const
pfcp_procedure
&
p
,
const
::
cause_value_e
cause
);
void
notify_ul_error
(
const
pfcp_procedure
&
p
,
const
cause_value_e
cause
);
public:
public:
static
const
uint8_t
version
=
2
;
static
const
uint8_t
version
=
2
;
...
...
src/smf_app/smf_app.cpp
View file @
593cf973
...
@@ -1294,9 +1294,22 @@ bool smf_app::handle_nf_status_notification(
...
@@ -1294,9 +1294,22 @@ bool smf_app::handle_nf_status_notification(
}
else
{
}
else
{
return
false
;
return
false
;
}
}
}
else
{
}
if
(
event_type
.
compare
(
"NF_DEREGISTERED"
)
==
0
)
{
Logger
::
smf_app
().
debug
(
Logger
::
smf_app
().
debug
(
"This event (%s) has not been supported yet!"
,
event_type
);
"This event (%s) has not been supported yet!"
,
event_type
);
// TODO: Remove UPF from the list UPFs if received DE-REGISTERED Event
/* std::string nf_instance_uri = {};
notification_msg.get_nf_instance_uri(nf_instance_uri);
std::vector<std::string> split_result;
boost::split(
split_result, nf_instance_uri, boost::is_any_of("/"));
if (split_result.size() > 0) {
std::string instance_id = split_result[split_result.size() -1];
pfcp_associations::get_instance().remove_association(instance_id);
}
*/
}
}
return
true
;
return
true
;
...
...
src/smf_app/smf_app.hpp
View file @
593cf973
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#include <string>
#include <string>
#include <thread>
#include <thread>
#include "3gpp_29.274.h"
#include "3gpp_29.502.h"
#include "3gpp_29.502.h"
#include "itti_msg_n11.hpp"
#include "itti_msg_n11.hpp"
#include "itti_msg_n4.hpp"
#include "itti_msg_n4.hpp"
...
...
src/smf_app/smf_config.hpp
View file @
593cf973
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#include "thread_sched.hpp"
#include "thread_sched.hpp"
#include "3gpp_29.244.h"
#include "3gpp_29.244.h"
#include "3gpp_29.274.h"
#include "pfcp.hpp"
#include "pfcp.hpp"
#include "smf.h"
#include "smf.h"
...
...
src/smf_app/smf_context.hpp
View file @
593cf973
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
#include "3gpp_24.008.h"
#include "3gpp_24.008.h"
#include "3gpp_29.244.h"
#include "3gpp_29.244.h"
#include "3gpp_29.274.h"
#include "3gpp_29.502.h"
#include "3gpp_29.502.h"
#include "3gpp_29.503.h"
#include "3gpp_29.503.h"
#include "common_root_types.h"
#include "common_root_types.h"
...
...
src/smf_app/smf_msg.hpp
View file @
593cf973
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
#include "3gpp_24.007.h"
#include "3gpp_24.007.h"
#include "3gpp_24.501.h"
#include "3gpp_24.501.h"
#include "3gpp_29.244.h"
#include "3gpp_29.244.h"
#include "3gpp_29.274.h"
#include "3gpp_29.508.h"
#include "3gpp_29.508.h"
#include "3gpp_29.571.h"
#include "3gpp_29.571.h"
#include "NgRanTargetId.h"
#include "NgRanTargetId.h"
...
...
src/smf_app/smf_pfcp_association.cpp
View file @
593cf973
...
@@ -385,3 +385,10 @@ bool pfcp_associations::add_peer_candidate_node(
...
@@ -385,3 +385,10 @@ bool pfcp_associations::add_peer_candidate_node(
pending_associations
.
push_back
(
s
);
pending_associations
.
push_back
(
s
);
return
true
;
return
true
;
}
}
//------------------------------------------------------------------------------
bool
pfcp_associations
::
remove_association
(
const
std
::
string
&
node_instance_id
)
{
// TODO
return
true
;
}
src/smf_app/smf_pfcp_association.hpp
View file @
593cf973
...
@@ -217,6 +217,7 @@ class pfcp_associations {
...
@@ -217,6 +217,7 @@ class pfcp_associations {
bool
add_peer_candidate_node
(
const
pfcp
::
node_id_t
&
node_id
);
bool
add_peer_candidate_node
(
const
pfcp
::
node_id_t
&
node_id
);
bool
add_peer_candidate_node
(
bool
add_peer_candidate_node
(
const
pfcp
::
node_id_t
&
node_id
,
const
upf_profile
&
profile
);
const
pfcp
::
node_id_t
&
node_id
,
const
upf_profile
&
profile
);
bool
remove_association
(
const
std
::
string
&
node_instance_id
);
};
};
}
// namespace smf
}
// namespace smf
...
...
src/smf_app/smf_procedure.cpp
View file @
593cf973
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <algorithm> // std::search
#include <algorithm> // std::search
#include "3gpp_29.244.h"
#include "3gpp_29.244.h"
#include "3gpp_29.274.h"
#include "3gpp_29.500.h"
#include "3gpp_29.500.h"
#include "3gpp_29.502.h"
#include "3gpp_29.502.h"
#include "3gpp_conversions.hpp"
#include "3gpp_conversions.hpp"
...
...
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