Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
5bc68422
Commit
5bc68422
authored
Aug 02, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply Google Style format
parent
0036739d
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
90 additions
and
85 deletions
+90
-85
src/amf-app/amf_app.cpp
src/amf-app/amf_app.cpp
+5
-5
src/amf-app/amf_app.hpp
src/amf-app/amf_app.hpp
+7
-9
src/amf-app/amf_config.cpp
src/amf-app/amf_config.cpp
+3
-3
src/amf-app/amf_config.hpp
src/amf-app/amf_config.hpp
+4
-4
src/amf-app/amf_event_sig.hpp
src/amf-app/amf_event_sig.hpp
+1
-0
src/amf-app/amf_module_from_config.cpp
src/amf-app/amf_module_from_config.cpp
+1
-1
src/amf-app/amf_msg.hpp
src/amf-app/amf_msg.hpp
+2
-2
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+10
-9
src/amf-app/amf_n1.hpp
src/amf-app/amf_n1.hpp
+7
-7
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+11
-11
src/amf-app/amf_sbi.cpp
src/amf-app/amf_sbi.cpp
+5
-5
src/amf-app/amf_sbi.hpp
src/amf-app/amf_sbi.hpp
+3
-4
src/amf-app/amf_subscription.cpp
src/amf-app/amf_subscription.cpp
+2
-1
src/common/3gpp_29.503.h
src/common/3gpp_29.503.h
+1
-0
src/common/3gpp_29.518.h
src/common/3gpp_29.518.h
+2
-1
src/common/amf.hpp
src/common/amf.hpp
+1
-1
src/common/conversions.cpp
src/common/conversions.cpp
+4
-3
src/common/conversions.hpp
src/common/conversions.hpp
+2
-3
src/contexts/nas_context.hpp
src/contexts/nas_context.hpp
+1
-1
src/contexts/ue_ngap_context.hpp
src/contexts/ue_ngap_context.hpp
+1
-1
src/itti/msgs/itti_msg_n2.hpp
src/itti/msgs/itti_msg_n2.hpp
+1
-1
src/itti/msgs/itti_msg_sbi.hpp
src/itti/msgs/itti_msg_sbi.hpp
+3
-4
src/sctp/sctp_server.cpp
src/sctp/sctp_server.cpp
+2
-2
src/sctp/sctp_server.hpp
src/sctp/sctp_server.hpp
+1
-1
src/secu_algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
...algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
+1
-1
src/secu_algorithms/nas_enc_int/nas_algorithms.hpp
src/secu_algorithms/nas_enc_int/nas_algorithms.hpp
+1
-1
src/secu_algorithms/nas_enc_int/snow3g.c
src/secu_algorithms/nas_enc_int/snow3g.c
+2
-1
src/utils/3gpp_conversions.hpp
src/utils/3gpp_conversions.hpp
+2
-2
src/utils/fqdn.cpp
src/utils/fqdn.cpp
+3
-1
src/utils/thread_sched.hpp
src/utils/thread_sched.hpp
+1
-0
No files found.
src/amf-app/amf_app.cpp
View file @
5bc68422
...
...
@@ -35,17 +35,17 @@
#include <stdexcept>
#include "DLNASTransport.hpp"
#include "GlobalRanNodeId.h"
#include "RegistrationContextContainer.h"
#include "UeN1N2InfoSubscriptionCreatedData.h"
#include "amf_config.hpp"
#include "amf_n1.hpp"
#include "amf_sbi.hpp"
#include "amf_n2.hpp"
#include "amf_sbi.hpp"
#include "amf_statistics.hpp"
#include "comUt.hpp"
#include "itti.hpp"
#include "ngap_app.hpp"
#include "comUt.hpp"
#include "RegistrationContextContainer.h"
#include "GlobalRanNodeId.h"
#include "UeN1N2InfoSubscriptionCreatedData.h"
using
namespace
ngap
;
using
namespace
nas
;
...
...
src/amf-app/amf_app.hpp
View file @
5bc68422
...
...
@@ -22,26 +22,24 @@
#ifndef _AMF_APP_H_
#define _AMF_APP_H_
#include <boost/thread.hpp>
#include <boost/thread/future.hpp>
#include <map>
#include <shared_mutex>
#include <string>
#include "ProblemDetails.h"
#include "UeN1N2InfoSubscriptionCreateData.h"
#include "amf_config.hpp"
#include "amf_module_from_config.hpp"
#include "amf_msg.hpp"
#include "amf_profile.hpp"
#include "amf_subscription.hpp"
#include "itti.hpp"
#include "itti_msg_sbi.hpp"
#include "itti_msg_amf_app.hpp"
#include "ue_context.hpp"
#include "amf_subscription.hpp"
#include "itti_msg_sbi.hpp"
#include "amf_msg.hpp"
#include "ProblemDetails.h"
#include "UeN1N2InfoSubscriptionCreateData.h"
#include "ue_context.hpp"
#include "uint_generator.hpp"
#include <boost/thread.hpp>
#include <boost/thread/future.hpp>
using
namespace
config
;
...
...
src/amf-app/amf_config.cpp
View file @
5bc68422
...
...
@@ -27,15 +27,15 @@
#include <iostream>
#include <libconfig.h++>
#include "3gpp_ts24501.hpp"
#include "3gpp_29.502.h"
#include "3gpp_ts24501.hpp"
#include "amf_app.hpp"
#include "conversions.hpp"
#include "fqdn.hpp"
#include "if.hpp"
#include "logger.hpp"
#include "string.hpp"
#include "thread_sched.hpp"
#include "fqdn.hpp"
#include "conversions.hpp"
extern
"C"
{
#include <arpa/inet.h>
...
...
src/amf-app/amf_config.hpp
View file @
5bc68422
...
...
@@ -26,19 +26,19 @@
#include <netinet/in.h>
#include <sys/socket.h>
#include <boost/algorithm/string.hpp>
#include <libconfig.h++>
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include "amf_config.hpp"
#include "amf.hpp"
#include "amf_config.hpp"
#include "common_defs.h"
#include "if.hpp"
#include "pdu_session_context.hpp"
#include "string.hpp"
#include "thread_sched.hpp"
#include "common_defs.h"
#include "pdu_session_context.hpp"
#define AMF_CONFIG_STRING_AMF_CONFIG "AMF"
#define AMF_CONFIG_STRING_PID_DIRECTORY "PID_DIRECTORY"
...
...
src/amf-app/amf_event_sig.hpp
View file @
5bc68422
...
...
@@ -24,6 +24,7 @@
#include <boost/signals2.hpp>
#include <string>
#include "UserLocation.h"
namespace
bs2
=
boost
::
signals2
;
...
...
src/amf-app/amf_module_from_config.cpp
View file @
5bc68422
...
...
@@ -20,11 +20,11 @@
*/
#include "amf_module_from_config.hpp"
#include "common_defs.h"
#include <iostream>
#include <string>
#include "common_defs.h"
#include "logger.hpp"
namespace
config
{
...
...
src/amf-app/amf_msg.hpp
View file @
5bc68422
...
...
@@ -22,10 +22,10 @@
#ifndef FILE_AMF_MSG_HPP_SEEN
#define FILE_AMF_MSG_HPP_SEEN
#include "amf.hpp"
#include "3gpp_29.518.h"
#include "amf_profile.hpp"
#include "AmfEventReport.h"
#include "amf.hpp"
#include "amf_profile.hpp"
namespace
amf_application
{
...
...
src/amf-app/amf_n1.cpp
View file @
5bc68422
...
...
@@ -25,6 +25,9 @@
#include <bitset>
#include "3gpp_24.501.h"
#include "AmfEventReport.h"
#include "AmfEventType.h"
#include "AuthenticationFailure.hpp"
#include "AuthenticationInfo.h"
#include "AuthenticationRequest.hpp"
...
...
@@ -39,27 +42,23 @@
#include "RegistrationReject.hpp"
#include "RegistrationRequest.hpp"
#include "SecurityModeCommand.hpp"
#include "ServiceAccept.hpp"
#include "SecurityModeComplete.hpp"
#include "ServiceAccept.hpp"
#include "ServiceRequest.hpp"
#include "String2Value.hpp"
#include "UEAuthenticationCtx.h"
#include "ULNASTransport.hpp"
#include "amf_app.hpp"
#include "amf_config.hpp"
#include "amf_sbi.hpp"
#include "amf_n2.hpp"
#include "amf_sbi.hpp"
#include "comUt.hpp"
#include "itti.hpp"
#include "itti_msg_sbi.hpp"
#include "itti_msg_n2.hpp"
#include "itti_msg_sbi.hpp"
#include "logger.hpp"
#include "nas_algorithms.hpp"
#include "comUt.hpp"
#include "3gpp_24.501.h"
#include "sha256.hpp"
#include "AmfEventReport.h"
#include "AmfEventType.h"
extern
"C"
{
#include "bstrlib.h"
...
...
@@ -3728,7 +3727,8 @@ void amf_n1::initialize_registration_accept(
std
::
unique_ptr
<
nas
::
RegistrationAccept
>&
registration_accept
)
{
registration_accept
->
setHeader
(
PLAIN_5GS_MSG
);
registration_accept
->
set_5GS_Registration_Result
(
false
,
false
,
false
,
0x01
);
// 3GPP Access
false
,
false
,
false
,
0x01
);
// 3GPP Access
registration_accept
->
setT3512_Value
(
0x5
,
T3512_TIMER_VALUE_MIN
);
std
::
vector
<
p_tai_t
>
tai_list
;
...
...
@@ -3769,7 +3769,8 @@ void amf_n1::initialize_registration_accept(
const
std
::
shared_ptr
<
nas_context
>&
nc
)
{
registration_accept
->
setHeader
(
PLAIN_5GS_MSG
);
registration_accept
->
set_5GS_Registration_Result
(
false
,
false
,
false
,
0x01
);
// 3GPP Access
false
,
false
,
false
,
0x01
);
// 3GPP Access
registration_accept
->
setT3512_Value
(
0x5
,
T3512_TIMER_VALUE_MIN
);
// Find UE Context
...
...
src/amf-app/amf_n1.hpp
View file @
5bc68422
...
...
@@ -29,22 +29,22 @@
#include <map>
#include <shared_mutex>
#include "3gpp_ts24501.hpp"
#include "3gpp_29.503.h"
#include "3gpp_ts24501.hpp"
#include "AuthorizedNetworkSliceInfo.h"
#include "Nssai.h"
#include "RegistrationAccept.hpp"
#include "SliceInfoForRegistration.h"
#include "amf.hpp"
#include "amf_event.hpp"
#include "amf_statistics.hpp"
#include "bstrlib.h"
#include "itti.hpp"
#include "itti_msg_n1.hpp"
#include "mysql_db.hpp"
#include "nas_context.hpp"
#include "pdu_session_context.hpp"
#include "amf_event.hpp"
#include "RegistrationAccept.hpp"
#include "ue_context.hpp"
#include "itti.hpp"
#include "SliceInfoForRegistration.h"
#include "AuthorizedNetworkSliceInfo.h"
#include "Nssai.h"
namespace
amf_application
{
...
...
src/amf-app/amf_n2.cpp
View file @
5bc68422
...
...
@@ -21,9 +21,17 @@
#include "amf_n2.hpp"
#include <boost/chrono.hpp>
#include <boost/chrono/chrono.hpp>
#include <boost/chrono/duration.hpp>
#include <boost/chrono/system_clocks.hpp>
#include "3gpp_24.501.h"
#include "DefaultPagingDRX.hpp"
#include "DownlinkNasTransport.hpp"
#include "HandoverPreparationFailure.hpp"
#include "InitialContextSetupRequest.hpp"
#include "NGResetAck.hpp"
#include "NGSetupFailure.hpp"
#include "NGSetupResponse.hpp"
#include "Ngap_Cause.h"
...
...
@@ -31,13 +39,12 @@
#include "Ngap_CauseRadioNetwork.h"
#include "Ngap_TimeToWait.h"
#include "PDUSessionResourceHandoverCommandTransfer.hpp"
#include "Paging.hpp"
#include "PduSessionResourceModifyRequest.hpp"
#include "PduSessionResourceReleaseCommand.hpp"
#include "PduSessionResourceSetupRequest.hpp"
#include "PduSessionResourceModifyRequest.hpp"
#include "UEContextReleaseCommand.hpp"
#include "HandoverPreparationFailure.hpp"
#include "Paging.hpp"
#include "RerouteNASRequest.hpp"
#include "UEContextReleaseCommand.hpp"
#include "amf_app.hpp"
#include "amf_config.hpp"
#include "amf_n1.hpp"
...
...
@@ -48,13 +55,6 @@
#include "itti_msg_amf_app.hpp"
#include "logger.hpp"
#include "sctp_server.hpp"
#include "3gpp_24.501.h"
#include "NGResetAck.hpp"
#include <boost/chrono.hpp>
#include <boost/chrono/chrono.hpp>
#include <boost/chrono/duration.hpp>
#include <boost/chrono/system_clocks.hpp>
extern
"C"
{
#include "dynamic_memory_check.h"
...
...
src/amf-app/amf_sbi.cpp
View file @
5bc68422
...
...
@@ -22,25 +22,25 @@
#include "amf_sbi.hpp"
#include <curl/curl.h>
#include <nlohmann/json.hpp>
#include "3gpp_ts24501.hpp"
#include "3gpp_29.500.h"
#include "3gpp_29.502.h"
#include "3gpp_ts24501.hpp"
#include "AmfEventReport.h"
#include "amf.hpp"
#include "amf_app.hpp"
#include "amf_config.hpp"
#include "AmfEventReport.h"
#include "amf_n1.hpp"
#include "conversions.hpp"
#include "comUt.hpp"
#include "
ue_context
.hpp"
#include "
conversions
.hpp"
#include "fqdn.hpp"
#include "itti.hpp"
#include "itti_msg_amf_app.hpp"
#include "mime_parser.hpp"
#include "nas_context.hpp"
#include "ue_context.hpp"
extern
"C"
{
#include "dynamic_memory_check.h"
...
...
src/amf-app/amf_sbi.hpp
View file @
5bc68422
...
...
@@ -22,6 +22,9 @@
#ifndef _AMF_SBI_H_
#define _AMF_SBI_H_
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <map>
#include <shared_mutex>
#include <string>
...
...
@@ -31,10 +34,6 @@
#include "itti_msg_sbi.hpp"
#include "pdu_session_context.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
namespace
amf_application
{
class
amf_sbi
{
...
...
src/amf-app/amf_subscription.cpp
View file @
5bc68422
...
...
@@ -20,8 +20,9 @@
*/
#include "amf_subscription.hpp"
#include "logger.hpp"
#include "3gpp_conversions.hpp"
#include "logger.hpp"
using
namespace
amf_application
;
...
...
src/common/3gpp_29.503.h
View file @
5bc68422
...
...
@@ -32,6 +32,7 @@
#include <string>
#include <vector>
#include "3gpp_23.003.h"
typedef
struct
nssai_s
{
...
...
src/common/3gpp_29.518.h
View file @
5bc68422
...
...
@@ -22,9 +22,10 @@
#ifndef FILE_3GPP_29_518_SEEN
#define FILE_3GPP_29_518_SEEN
#include "amf.hpp"
#include <vector>
#include "amf.hpp"
typedef
enum
amf_event_type_e
{
AMF_EVENT_UNKNOWN
=
0
,
LOCATION_REPORT
=
1
,
...
...
src/common/amf.hpp
View file @
5bc68422
...
...
@@ -29,9 +29,9 @@
#define __AMF_HPP
#include "3gpp_23.003.h"
#include "string.h"
#include "inttypes.h"
#include "stdio.h"
#include "string.h"
// for CURL
constexpr
auto
CURL_MIME_BOUNDARY
=
"----Boundary"
;
...
...
src/common/conversions.cpp
View file @
5bc68422
...
...
@@ -26,17 +26,18 @@
*/
#include "conversions.hpp"
#include "amf.hpp"
#include "logger.hpp"
#include <arpa/inet.h>
#include <ctype.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <boost/algorithm/string.hpp>
#include "amf.hpp"
#include "logger.hpp"
static
const
char
hex_to_ascii_table
[
16
]
=
{
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'a'
,
'b'
,
'c'
,
'd'
,
'e'
,
'f'
,
...
...
src/common/conversions.hpp
View file @
5bc68422
...
...
@@ -31,15 +31,14 @@
#include <netinet/in.h>
#include <stdint.h>
#include <string>
#include <iostream>
#include <string>
#include "bstrlib.h"
extern
"C"
{
#include "dynamic_memory_check.h"
#include "OCTET_STRING.h"
#include "dynamic_memory_check.h"
}
/* Used to format an uint32_t containing an ipv4 address */
...
...
src/contexts/nas_context.hpp
View file @
5bc68422
...
...
@@ -27,10 +27,10 @@
#include <string>
#include "authentication_algorithms_with_5gaka.hpp"
#include "itti.hpp"
#include "nas_security_context.hpp"
#include "security_def.hpp"
#include "struct.hpp"
#include "itti.hpp"
typedef
enum
{
_5GMM_STATE_MIN
=
0
,
...
...
src/contexts/ue_ngap_context.hpp
View file @
5bc68422
...
...
@@ -26,8 +26,8 @@
#include <map>
#include "gNB_context.hpp"
#include "amf.hpp"
#include "gNB_context.hpp"
using
namespace
sctp
;
typedef
enum
{
...
...
src/itti/msgs/itti_msg_n2.hpp
View file @
5bc68422
...
...
@@ -28,8 +28,8 @@
#include "InitialUEMessage.hpp"
#include "NGReset.hpp"
#include "NGSetupRequest.hpp"
#include "UEContextReleaseRequest.hpp"
#include "UEContextReleaseComplete.hpp"
#include "UEContextReleaseRequest.hpp"
#include "UERadioCapabilityInfoIndication.hpp"
#include "UplinkNASTransport.hpp"
#include "UplinkRANStatusTransfer.hpp"
...
...
src/itti/msgs/itti_msg_sbi.hpp
View file @
5bc68422
...
...
@@ -30,16 +30,15 @@
#ifndef ITTI_MSG_SBI_HPP_INCLUDED_
#define ITTI_MSG_SBI_HPP_INCLUDED_
#include "itti_msg.hpp"
#include "pistache/http.h"
#include "amf_msg.hpp"
#include "N1MessageNotification.h"
#include "SliceInfoForRegistration.h"
#include "UeN1N2InfoSubscriptionCreateData.h"
#include "amf.hpp"
#include "amf_msg.hpp"
#include "amf_profile.hpp"
#include "bstrlib.h"
#include "itti_msg.hpp"
#include "
SliceInfoForRegistration
.h"
#include "
pistache/http
.h"
// using namespace oai::amf::model;
using
namespace
amf_application
;
...
...
src/sctp/sctp_server.cpp
View file @
5bc68422
...
...
@@ -32,6 +32,7 @@
extern
"C"
{
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/sctp.h>
#include <pthread.h>
...
...
@@ -39,10 +40,9 @@ extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <netdb.h>
#include "bstrlib.h"
}
...
...
src/sctp/sctp_server.hpp
View file @
5bc68422
...
...
@@ -31,8 +31,8 @@
#include <thread>
#include "endpoint.hpp"
#include "common_defs.h"
#include "endpoint.hpp"
extern
"C"
{
#include <netinet/in.h>
...
...
src/secu_algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
View file @
5bc68422
...
...
@@ -30,8 +30,8 @@
#include <string.h>
#include "OCTET_STRING.h"
#include "logger.hpp"
#include "comUt.hpp"
#include "logger.hpp"
/************ algorithm f1 **************/
/*
...
...
src/secu_algorithms/nas_enc_int/nas_algorithms.hpp
View file @
5bc68422
...
...
@@ -46,8 +46,8 @@
#include "authentication_algorithms_with_5gaka.hpp"
extern
"C"
{
#include "snow3g.h"
#include "conversions.h"
#include "snow3g.h"
}
#define SECU_DIRECTION_UPLINK 0
...
...
src/secu_algorithms/nas_enc_int/snow3g.c
View file @
5bc68422
...
...
@@ -25,13 +25,14 @@
\email: contact@openairinterface.org
*/
#include "snow3g.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rijndael.h"
#include "snow3g.h"
static
uint8_t
_MULx
(
uint8_t
V
,
uint8_t
c
);
static
uint8_t
_MULxPOW
(
uint8_t
V
,
uint8_t
i
,
uint8_t
c
);
...
...
src/utils/3gpp_conversions.hpp
View file @
5bc68422
...
...
@@ -29,9 +29,9 @@
#ifndef FILE_3GPP_CONVERSIONS_HPP_SEEN
#define FILE_3GPP_CONVERSIONS_HPP_SEEN
#include "amf_msg.hpp"
#include "AmfCreateEventSubscription.h"
#include "3gpp_29.518.h"
#include "AmfCreateEventSubscription.h"
#include "amf_msg.hpp"
using
namespace
amf_application
;
// using namespace oai::amf::model;
...
...
src/utils/fqdn.cpp
View file @
5bc68422
...
...
@@ -20,10 +20,12 @@
*/
#include "fqdn.hpp"
#include "logger.hpp"
#include <boost/asio.hpp>
#include <iostream>
#include "logger.hpp"
bool
fqdn
::
resolve
(
const
std
::
string
&
host_name
,
std
::
string
&
address
,
uint32_t
&
port
,
uint8_t
&
addr_type
,
const
std
::
string
&
protocol
)
{
...
...
src/utils/thread_sched.hpp
View file @
5bc68422
...
...
@@ -29,6 +29,7 @@
#define FILE_THREAD_SCHED_HPP_SEEN
#include <sched.h>
#include "logger.hpp"
namespace
util
{
...
...
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