Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oai-upf-6g
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
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
oai-upf-6g
Commits
7ce96dde
Commit
7ce96dde
authored
Oct 16, 2025
by
Franck Messaoudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update:remove dead code and useless macros
parent
22053149
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
25 deletions
+2
-25
src/oai_upf/main.cpp
src/oai_upf/main.cpp
+2
-25
No files found.
src/oai_upf/main.cpp
View file @
7ce96dde
...
...
@@ -60,14 +60,6 @@ std::unique_ptr<lttng_configuration> lttng_config_yaml;
boost
::
asio
::
io_service
io_service
;
bool
single_teardown_call
;
#ifndef N3_IF_NAME
#define N3_IF_NAME upf_cfg.n3.if_name
#endif // N3_IF_NAME
#ifndef N6_IF_NAME
#define N6_IF_NAME upf_cfg.n6.if_name
#endif // N6_IF_NAME
std
::
unique_ptr
<
upf_config_yaml
>
upf_cfg_yaml
=
nullptr
;
std
::
shared_ptr
<
oai
::
http
::
http_client
>
http_client_inst
=
nullptr
;
//------------------------------------------------------------------------------
...
...
@@ -118,8 +110,8 @@ void my_app_signal_handler(int s) {
//------------------------------------------------------------------------------
void
setup_bpf
()
{
std
::
string
sGTPInterface
=
N3_IF_NAME
;
std
::
string
sUDPInterface
=
N6_IF_NAME
;
std
::
string
sGTPInterface
=
upf_cfg
.
n3
.
if_name
;
std
::
string
sUDPInterface
=
upf_cfg
.
n6
.
if_name
;
Logger
::
upf_app
().
info
(
"GTP interface: %s"
,
sGTPInterface
.
c_str
());
Logger
::
upf_app
().
info
(
"Non-GTP interface: %s"
,
sUDPInterface
.
c_str
());
...
...
@@ -132,26 +124,11 @@ void setup_bpf() {
//------------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
{
// Command line options
// std::string configPath =
// "/home/messaoudi/workspace/project-oai-qos/oai-cn5g-upf/etc/"
// "ebpf_maps.conf";
if
(
!
Options
::
parse
(
argc
,
argv
))
{
std
::
cout
<<
"Options::parse() failed"
<<
std
::
endl
;
return
1
;
}
// if (!ConfigLoader::getInstance().loadConfig(configPath)) {
// std::cerr << "Failed to load ebpf map sizes config file" << std::endl;
// return 1; // Exit if config fails
// }
// printFileContents(configPath);
// Logger
// Config
std
::
string
conf_file_name
=
Options
::
getlibconfigConfig
();
std
::
cout
<<
"Trying to read .yaml configuration file: "
<<
conf_file_name
...
...
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