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
9e7de937
Commit
9e7de937
authored
Jul 24, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-oganize utils
parent
57b6e24e
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
8 additions
and
18 deletions
+8
-18
README.txt
README.txt
+0
-1
src/api-server/CMakeLists.txt
src/api-server/CMakeLists.txt
+1
-1
src/api-server/smf-api-server.cpp
src/api-server/smf-api-server.cpp
+1
-1
src/common/CMakeLists.txt
src/common/CMakeLists.txt
+1
-1
src/common/dynamic_memory_check.c
src/common/dynamic_memory_check.c
+0
-0
src/common/dynamic_memory_check.h
src/common/dynamic_memory_check.h
+0
-0
src/common/utils/TLVDecoder.c
src/common/utils/TLVDecoder.c
+0
-0
src/common/utils/TLVDecoder.h
src/common/utils/TLVDecoder.h
+0
-0
src/common/utils/TLVEncoder.c
src/common/utils/TLVEncoder.c
+0
-0
src/common/utils/TLVEncoder.h
src/common/utils/TLVEncoder.h
+0
-0
src/common/utils/asn1_conversions.h
src/common/utils/asn1_conversions.h
+0
-0
src/common/utils/assertions.h
src/common/utils/assertions.h
+0
-0
src/common/utils/backtrace.c
src/common/utils/backtrace.c
+0
-0
src/common/utils/backtrace.h
src/common/utils/backtrace.h
+0
-0
src/common/utils/bstr/LICENSE
src/common/utils/bstr/LICENSE
+0
-0
src/common/utils/bstr/README.md
src/common/utils/bstr/README.md
+0
-0
src/common/utils/bstr/bsafe.c
src/common/utils/bstr/bsafe.c
+0
-0
src/common/utils/bstr/bsafe.h
src/common/utils/bstr/bsafe.h
+0
-0
src/common/utils/bstr/bstraux.c
src/common/utils/bstr/bstraux.c
+0
-0
src/common/utils/bstr/bstraux.h
src/common/utils/bstr/bstraux.h
+0
-0
src/common/utils/bstr/bstrlib.c
src/common/utils/bstr/bstrlib.c
+0
-0
src/common/utils/bstr/bstrlib.h
src/common/utils/bstr/bstrlib.h
+0
-0
src/common/utils/bstr/bstrlib.txt
src/common/utils/bstr/bstrlib.txt
+0
-0
src/common/utils/bstr/bstrwrap.cpp
src/common/utils/bstr/bstrwrap.cpp
+0
-0
src/common/utils/bstr/bstrwrap.h
src/common/utils/bstr/bstrwrap.h
+0
-0
src/common/utils/bstr/buniutil.c
src/common/utils/bstr/buniutil.c
+0
-0
src/common/utils/bstr/buniutil.h
src/common/utils/bstr/buniutil.h
+0
-0
src/common/utils/bstr/porting.txt
src/common/utils/bstr/porting.txt
+0
-0
src/common/utils/bstr/security.txt
src/common/utils/bstr/security.txt
+0
-0
src/common/utils/bstr/test.cpp
src/common/utils/bstr/test.cpp
+0
-0
src/common/utils/bstr/testaux.c
src/common/utils/bstr/testaux.c
+0
-0
src/common/utils/bstr/utf8util.c
src/common/utils/bstr/utf8util.c
+0
-0
src/common/utils/bstr/utf8util.h
src/common/utils/bstr/utf8util.h
+0
-0
src/common/utils/conversions.h
src/common/utils/conversions.h
+0
-0
src/nas/CMakeLists.txt
src/nas/CMakeLists.txt
+3
-11
src/oai_smf/CMakeLists.txt
src/oai_smf/CMakeLists.txt
+2
-3
No files found.
README.txt
View file @
9e7de937
...
...
@@ -26,7 +26,6 @@ openair-cn5g-smf
├── pfcp: Generic PFCP stack implementation.
├── smf_app: SMF network functions procedures and contexts.
├── test: Minimal implementation for AMF, UDM network functions for testing purpose.
├── utils: Common utilities.
└── udp : UDP server implementation.
# OAI-SMF testbed: network topology
...
...
src/api-server/CMakeLists.txt
View file @
9e7de937
...
...
@@ -4,12 +4,12 @@ include_directories(${SMF_API_SERVER_DIR}/api)
include_directories
(
${
SMF_API_SERVER_DIR
}
/impl
)
include_directories
(
${
SMF_API_SERVER_DIR
}
/model
)
include_directories
(
${
SMF_API_SERVER_DIR
}
/
)
include_directories
(
${
SRC_TOP_DIR
}
/utils/bstr
)
include_directories
(
${
SRC_TOP_DIR
}
/smf_app
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils/bstr
)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/common/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
...
...
src/api-server/smf-api-server.cpp
View file @
9e7de937
...
...
@@ -76,7 +76,7 @@ using namespace oai::smf_server::api;
void
SMFApiServer
::
init
(
size_t
thr
)
{
auto
opts
=
Pistache
::
Http
::
Endpoint
::
options
().
threads
(
thr
);
opts
.
flags
(
Pistache
::
Tcp
::
Options
::
ReuseAddr
);
opts
.
max
Payload
(
PISTACHE_SERVER_MAX_PAYLOAD
);
opts
.
max
RequestSize
(
PISTACHE_SERVER_MAX_PAYLOAD
);
m_httpEndpoint
->
init
(
opts
);
m_individualPDUSessionHSMFApiImpl
->
init
();
m_individualSMContextApiImpl
->
init
();
...
...
src/common/CMakeLists.txt
View file @
9e7de937
...
...
@@ -22,7 +22,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/msg
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/nas
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/ngap
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/utils
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/
common/
utils
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/..
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/..
)
...
...
src/
utils
/dynamic_memory_check.c
→
src/
common
/dynamic_memory_check.c
View file @
9e7de937
File moved
src/
utils
/dynamic_memory_check.h
→
src/
common
/dynamic_memory_check.h
View file @
9e7de937
File moved
src/utils/TLVDecoder.c
→
src/
common/
utils/TLVDecoder.c
View file @
9e7de937
File moved
src/utils/TLVDecoder.h
→
src/
common/
utils/TLVDecoder.h
View file @
9e7de937
File moved
src/utils/TLVEncoder.c
→
src/
common/
utils/TLVEncoder.c
View file @
9e7de937
File moved
src/utils/TLVEncoder.h
→
src/
common/
utils/TLVEncoder.h
View file @
9e7de937
File moved
src/utils/asn1_conversions.h
→
src/
common/
utils/asn1_conversions.h
View file @
9e7de937
File moved
src/utils/assertions.h
→
src/
common/
utils/assertions.h
View file @
9e7de937
File moved
src/utils/backtrace.c
→
src/
common/
utils/backtrace.c
View file @
9e7de937
File moved
src/utils/backtrace.h
→
src/
common/
utils/backtrace.h
View file @
9e7de937
File moved
src/utils/bstr/LICENSE
→
src/
common/
utils/bstr/LICENSE
View file @
9e7de937
File moved
src/utils/bstr/README.md
→
src/
common/
utils/bstr/README.md
View file @
9e7de937
File moved
src/utils/bstr/bsafe.c
→
src/
common/
utils/bstr/bsafe.c
View file @
9e7de937
File moved
src/utils/bstr/bsafe.h
→
src/
common/
utils/bstr/bsafe.h
View file @
9e7de937
File moved
src/utils/bstr/bstraux.c
→
src/
common/
utils/bstr/bstraux.c
View file @
9e7de937
File moved
src/utils/bstr/bstraux.h
→
src/
common/
utils/bstr/bstraux.h
View file @
9e7de937
File moved
src/utils/bstr/bstrlib.c
→
src/
common/
utils/bstr/bstrlib.c
View file @
9e7de937
File moved
src/utils/bstr/bstrlib.h
→
src/
common/
utils/bstr/bstrlib.h
View file @
9e7de937
File moved
src/utils/bstr/bstrlib.txt
→
src/
common/
utils/bstr/bstrlib.txt
View file @
9e7de937
File moved
src/utils/bstr/bstrwrap.cpp
→
src/
common/
utils/bstr/bstrwrap.cpp
View file @
9e7de937
File moved
src/utils/bstr/bstrwrap.h
→
src/
common/
utils/bstr/bstrwrap.h
View file @
9e7de937
File moved
src/utils/bstr/buniutil.c
→
src/
common/
utils/bstr/buniutil.c
View file @
9e7de937
File moved
src/utils/bstr/buniutil.h
→
src/
common/
utils/bstr/buniutil.h
View file @
9e7de937
File moved
src/utils/bstr/porting.txt
→
src/
common/
utils/bstr/porting.txt
View file @
9e7de937
File moved
src/utils/bstr/security.txt
→
src/
common/
utils/bstr/security.txt
View file @
9e7de937
File moved
src/utils/bstr/test.cpp
→
src/
common/
utils/bstr/test.cpp
View file @
9e7de937
File moved
src/utils/bstr/testaux.c
→
src/
common/
utils/bstr/testaux.c
View file @
9e7de937
File moved
src/utils/bstr/utf8util.c
→
src/
common/
utils/bstr/utf8util.c
View file @
9e7de937
File moved
src/utils/bstr/utf8util.h
→
src/
common/
utils/bstr/utf8util.h
View file @
9e7de937
File moved
src/utils/conversions.h
→
src/
common/
utils/conversions.h
View file @
9e7de937
File moved
src/nas/CMakeLists.txt
View file @
9e7de937
...
...
@@ -6,13 +6,12 @@ include_directories(${NAS_DIR}/mm/msg)
include_directories
(
${
NAS_DIR
}
/sm
)
include_directories
(
${
NAS_DIR
}
/sm/msg
)
include_directories
(
${
NAS_DIR
}
/security
)
include_directories
(
${
SRC_TOP_DIR
}
/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/utils/bstr
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/asn1c
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils/bstr
)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/common/ngap
)
...
...
@@ -24,15 +23,8 @@ file(GLOB NAS_src_files
${
NAS_DIR
}
/mm/*.c
${
NAS_DIR
}
/sm/*.c
${
NAS_DIR
}
/sm/msg/*.c
${
SRC_TOP_DIR
}
/utils/conversions.c
${
SRC_TOP_DIR
}
/utils/pid_file.c
${
SRC_TOP_DIR
}
/utils/hashtable.c
${
SRC_TOP_DIR
}
/utils/TLVDecoder.c
${
SRC_TOP_DIR
}
/utils/TLVEncoder.c
${
SRC_TOP_DIR
}
/utils/dynamic_memory_check.c
${
SRC_TOP_DIR
}
/utils/backtrace.c
${
SRC_TOP_DIR
}
/utils/bstr/*.c
${
SRC_TOP_DIR
}
/utils/multipartparser.c
${
SRC_TOP_DIR
}
/common/utils/*.c
${
SRC_TOP_DIR
}
/common/utils/bstr/*.c
${
SRC_TOP_DIR
}
/nas/security/*.c
${
SRC_TOP_DIR
}
/common/*.c
${
SRC_TOP_DIR
}
/ngap/asn1c/*.c
...
...
src/oai_smf/CMakeLists.txt
View file @
9e7de937
...
...
@@ -23,7 +23,7 @@
cmake_minimum_required
(
VERSION 3.0.2
)
project
(
OpenAirInterface
)
project
(
OpenAirInterface
)
###########################################
# macros to define options as there is numerous options in oai
...
...
@@ -286,6 +286,7 @@ include_directories(${SRC_TOP_DIR}/common/msg)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/common/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils/bstr
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
include_directories
(
${
SRC_TOP_DIR
}
/udp
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
...
...
@@ -303,8 +304,6 @@ include_directories(${SRC_TOP_DIR}/nas/security)
include_directories
(
${
SRC_TOP_DIR
}
/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/asn1c
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/utils/bstr
)
add_executable
(
smf
${
SRC_TOP_DIR
}
/oai_smf/main.cpp
...
...
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