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
82d6fa3c
Commit
82d6fa3c
authored
Jul 27, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address Cpp check (CI)
parent
481e3d88
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
49 deletions
+25
-49
src/common/logger.cpp
src/common/logger.cpp
+0
-48
src/common/utils/backtrace.c
src/common/utils/backtrace.c
+1
-1
src/pfcp/3gpp_29.244.cpp
src/pfcp/3gpp_29.244.cpp
+1
-0
src/pfcp/3gpp_29.244.hpp
src/pfcp/3gpp_29.244.hpp
+10
-0
src/smf_app/smf_config.hpp
src/smf_app/smf_config.hpp
+6
-0
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+2
-0
src/smf_app/smf_context.hpp
src/smf_app/smf_context.hpp
+1
-0
src/smf_app/smf_n1_n2.cpp
src/smf_app/smf_n1_n2.cpp
+1
-0
src/smf_app/smf_pfcp_association.hpp
src/smf_app/smf_pfcp_association.hpp
+1
-0
src/test/smf_client/model/AccessType.cpp
src/test/smf_client/model/AccessType.cpp
+1
-0
src/udp/udp.hpp
src/udp/udp.hpp
+1
-0
No files found.
src/common/logger.cpp
View file @
82d6fa3c
...
...
@@ -96,15 +96,6 @@ void _Logger::trace(const char *format, ...) {
#endif
}
void
_Logger
::
trace
(
const
std
::
string
&
format
,
...)
{
#if TRACE_IS_ON
va_list
args
;
va_start
(
args
,
format
);
log
(
_ltTrace
,
format
.
c_str
(),
args
);
va_end
(
args
);
#endif
}
void
_Logger
::
debug
(
const
char
*
format
,
...)
{
#if DEBUG_IS_ON
va_list
args
;
...
...
@@ -114,15 +105,6 @@ void _Logger::debug(const char *format, ...) {
#endif
}
void
_Logger
::
debug
(
const
std
::
string
&
format
,
...)
{
#if DEBUG_IS_ON
va_list
args
;
va_start
(
args
,
format
);
log
(
_ltDebug
,
format
.
c_str
(),
args
);
va_end
(
args
);
#endif
}
void
_Logger
::
info
(
const
char
*
format
,
...)
{
#if INFO_IS_ON
va_list
args
;
...
...
@@ -132,15 +114,6 @@ void _Logger::info(const char *format, ...) {
#endif
}
void
_Logger
::
info
(
const
std
::
string
&
format
,
...)
{
#if INFO_IS_ON
va_list
args
;
va_start
(
args
,
format
);
log
(
_ltInfo
,
format
.
c_str
(),
args
);
va_end
(
args
);
#endif
}
void
_Logger
::
startup
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -148,13 +121,6 @@ void _Logger::startup(const char *format, ...) {
va_end
(
args
);
}
void
_Logger
::
startup
(
const
std
::
string
&
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
log
(
_ltStartup
,
format
.
c_str
(),
args
);
va_end
(
args
);
}
void
_Logger
::
warn
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -162,13 +128,6 @@ void _Logger::warn(const char *format, ...) {
va_end
(
args
);
}
void
_Logger
::
warn
(
const
std
::
string
&
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
log
(
_ltWarn
,
format
.
c_str
(),
args
);
va_end
(
args
);
}
void
_Logger
::
error
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -176,13 +135,6 @@ void _Logger::error(const char *format, ...) {
va_end
(
args
);
}
void
_Logger
::
error
(
const
std
::
string
&
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
log
(
_ltError
,
format
.
c_str
(),
args
);
va_end
(
args
);
}
void
_Logger
::
log
(
_LogType
lt
,
const
char
*
format
,
va_list
&
args
)
{
char
buffer
[
2048
];
...
...
src/common/utils/backtrace.c
View file @
82d6fa3c
...
...
@@ -42,7 +42,7 @@ display_backtrace (
size
=
backtrace
(
array
,
10
);
strings
=
backtrace_symbols
(
array
,
size
);
printf
(
"Obtained %z
d
stack frames.
\n
"
,
size
);
printf
(
"Obtained %z
u
stack frames.
\n
"
,
size
);
for
(
i
=
0
;
i
<
size
;
i
++
)
printf
(
"%s
\n
"
,
strings
[
i
]);
...
...
src/pfcp/3gpp_29.244.cpp
View file @
82d6fa3c
...
...
@@ -1191,6 +1191,7 @@ pfcp_msg::pfcp_msg(const pfcp_session_modification_response& pfcp_ies) : pfcp_ms
//------------------------------------------------------------------------------
pfcp_msg
::
pfcp_msg
(
const
pfcp_session_deletion_request
&
pfcp_ies
)
:
pfcp_msg_header
()
{
ies
=
{};
remote_port
=
0
;
set_message_type
(
PFCP_SESSION_DELETION_REQUEST
);
// NO IEs !
}
...
...
src/pfcp/3gpp_29.244.hpp
View file @
82d6fa3c
...
...
@@ -4009,6 +4009,7 @@ public:
}
//--------
explicit
pfcp_urr_id_ie
(
const
pfcp_tlv
&
t
)
:
pfcp_ie
(
t
)
{
urr_id
=
0
;
};
//--------
void
to_core_type
(
pfcp
::
urr_id_t
&
b
)
{
...
...
@@ -4155,6 +4156,11 @@ public:
}
//--------
explicit
pfcp_outer_header_creation_ie
(
const
pfcp_tlv
&
t
)
:
pfcp_ie
(
t
)
{
outer_header_creation_description
=
{};
teid
=
{};
ipv4_address
=
{};
ipv6_address
=
{};
port_number
=
{};
};
//--------
void
to_core_type
(
pfcp
::
outer_header_creation_t
&
b
)
{
...
...
@@ -4750,6 +4756,7 @@ public:
}
//--------
explicit
pfcp_outer_header_removal_ie
(
const
pfcp_tlv
&
t
)
:
pfcp_ie
(
t
)
{
outer_header_removal_description
=
0
;
};
//--------
void
to_core_type
(
pfcp
::
outer_header_removal_t
&
b
)
{
...
...
@@ -5335,6 +5342,7 @@ public:
}
//--------
explicit
pfcp_far_id_ie
(
const
pfcp_tlv
&
t
)
:
pfcp_ie
(
t
)
{
far_id
=
0
;
};
//--------
void
to_core_type
(
pfcp
::
far_id_t
&
b
)
{
...
...
@@ -5380,6 +5388,7 @@ public:
}
//--------
explicit
pfcp_qer_id_ie
(
const
pfcp_tlv
&
t
)
:
pfcp_ie
(
t
)
{
qer_id
=
0
;
};
//--------
void
to_core_type
(
pfcp
::
qer_id_t
&
b
)
{
...
...
@@ -5918,6 +5927,7 @@ public:
}
//--------
explicit
pfcp_user_plane_inactivity_timer_ie
(
const
pfcp_tlv
&
t
)
:
pfcp_ie
(
t
)
{
user_plane_inactivity_timer
=
0
;
};
//--------
void
to_core_type
(
pfcp
::
user_plane_inactivity_timer_t
&
b
)
{
...
...
src/smf_app/smf_config.hpp
View file @
82d6fa3c
...
...
@@ -286,6 +286,12 @@ class smf_config {
local_configuration
=
false
;
num_session_management_subscription
=
0
;
test_upf_cfg
=
{};
for
(
int
i
=
0
;
i
<
SMF_NUM_SESSION_MANAGEMENT_SUBSCRIPTION_MAX
;
i
++
)
{
session_management_subscription
[
i
]
=
{};
}
sbi_http2_port
=
0
;
}
;
...
...
src/smf_app/smf_context.cpp
View file @
82d6fa3c
...
...
@@ -1795,6 +1795,8 @@ void smf_context::handle_pdu_session_update_sm_context_request(
smf_app_inst
->
trigger_http_response
(
http_status_code_e
::
HTTP_STATUS_CODE_500_INTERNAL_SERVER_ERROR
,
smreq
->
pid
,
N11_SESSION_UPDATE_SM_CONTEXT_RESPONSE
);
free_wrapper
((
void
**
)
&
qos_flow_description
);
return
;
}
...
...
src/smf_app/smf_context.hpp
View file @
82d6fa3c
...
...
@@ -79,6 +79,7 @@ class smf_qos_flow {
far_id_dl
=
{
};
released
=
false
;
qos_profile
=
{
};
cause_value
=
0
;
}
/*
...
...
src/smf_app/smf_n1_n2.cpp
View file @
82d6fa3c
...
...
@@ -702,6 +702,7 @@ bool smf_n1_n2::create_n2_sm_information(pdu_session_msg &msg,
it
->
first
);
if
(
qos_flows
.
empty
())
{
free_wrapper
((
void
**
)
&
ngap_IEs
);
return
false
;
}
//TODO: support only 1 qos flow
...
...
src/smf_app/smf_pfcp_association.hpp
View file @
82d6fa3c
...
...
@@ -85,6 +85,7 @@ class pfcp_association {
num_retries_timer_heartbeat
=
0
;
trxn_id_heartbeat
=
0
;
timer_association
=
ITTI_INVALID_TIMER_ID
;
is_restore_sessions_pending
=
false
;
}
pfcp_association
(
const
pfcp
::
node_id_t
&
ni
,
pfcp
::
recovery_time_stamp_t
&
rts
,
pfcp
::
up_function_features_s
&
uff
)
...
...
src/test/smf_client/model/AccessType.cpp
View file @
82d6fa3c
...
...
@@ -21,6 +21,7 @@ namespace model {
AccessType
::
AccessType
()
{
m_value
=
eAccessType
::
AccessType_3GPP_ACCESS
;
}
AccessType
::~
AccessType
()
...
...
src/udp/udp.hpp
View file @
82d6fa3c
...
...
@@ -77,6 +77,7 @@ public:
udp_server
(
const
struct
in6_addr
&
address
,
const
uint16_t
port_num
)
:
app_
(
nullptr
),
port_
(
port_num
)
{
recv_buffer_
[
0
]
=
0
;
socket_
=
create_socket
(
address
,
port_
);
if
(
socket_
>
0
)
{
Logger
::
udp
().
debug
(
"udp_server::udp_server(%s:%d)"
,
conv
::
toString
(
address
).
c_str
(),
port_
);
...
...
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