Commit 5bc68422 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Apply Google Style format

parent 0036739d
......@@ -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;
......
......@@ -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;
......
......@@ -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>
......
......@@ -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"
......
......@@ -24,6 +24,7 @@
#include <boost/signals2.hpp>
#include <string>
#include "UserLocation.h"
namespace bs2 = boost::signals2;
......
......@@ -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 {
......
......@@ -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 {
......
......@@ -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
......
......@@ -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 {
......
......@@ -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"
......
......@@ -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"
......
......@@ -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 {
......
......@@ -20,8 +20,9 @@
*/
#include "amf_subscription.hpp"
#include "logger.hpp"
#include "3gpp_conversions.hpp"
#include "logger.hpp"
using namespace amf_application;
......
......@@ -32,6 +32,7 @@
#include <string>
#include <vector>
#include "3gpp_23.003.h"
typedef struct nssai_s {
......
......@@ -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,
......
......@@ -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";
......
......@@ -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',
......
......@@ -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 */
......
......@@ -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,
......
......@@ -26,8 +26,8 @@
#include <map>
#include "gNB_context.hpp"
#include "amf.hpp"
#include "gNB_context.hpp"
using namespace sctp;
typedef enum {
......
......@@ -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"
......
......@@ -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;
......
......@@ -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"
}
......
......@@ -31,8 +31,8 @@
#include <thread>
#include "endpoint.hpp"
#include "common_defs.h"
#include "endpoint.hpp"
extern "C" {
#include <netinet/in.h>
......
......@@ -30,8 +30,8 @@
#include <string.h>
#include "OCTET_STRING.h"
#include "logger.hpp"
#include "comUt.hpp"
#include "logger.hpp"
/************ algorithm f1 **************/
/*
......
......@@ -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
......
......@@ -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);
......
......@@ -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;
......
......@@ -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) {
......
......@@ -29,6 +29,7 @@
#define FILE_THREAD_SCHED_HPP_SEEN
#include <sched.h>
#include "logger.hpp"
namespace util {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment