Commit 93ec85ea authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Code cleanup

parent d1cf1a2b
......@@ -24,14 +24,6 @@
#include "Type6NasIe.hpp"
#include "struct.hpp"
#include <stdint.h>
#include <optional>
extern "C" {
#include "TLVDecoder.h"
#include "TLVEncoder.h"
#include "bstrlib.h"
}
constexpr uint8_t k5gsMobileIdentityIe5gGutiLength = 11;
constexpr uint8_t k5gsMobileIdentityIe5gSTmsiLength = 7;
......
......@@ -23,7 +23,6 @@
#define _ABBA_H_
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kAbbaMinimumLength = 4;
constexpr auto kAbbaIeName = "ABBA";
......
......@@ -23,8 +23,6 @@
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kAuthenticationParameterAutnLength = 18;
constexpr uint8_t kAuthenticationParameterAutnValueLength =
kAuthenticationParameterAutnLength - 2;
......
......@@ -24,8 +24,6 @@
#include "Type3NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kAuthenticationParameterRandLength = 17;
constexpr uint8_t kAuthenticationParameterRandValueLength =
kAuthenticationParameterRandLength - 1;
......
......@@ -23,13 +23,6 @@
#define _EPS_NAS_MESSAGE_CONTAINER_H_
#include "Type6NasIe.hpp"
#include <stdint.h>
extern "C" {
#include "TLVDecoder.h"
#include "TLVEncoder.h"
#include "bstrlib.h"
}
constexpr auto kEpsNasMessageContainerIeName = "EPS NAS Message Container";
......
......@@ -23,13 +23,6 @@
#define _EAP_MESSAGE_H_
#include "Type6NasIe.hpp"
#include <stdint.h>
extern "C" {
#include "TLVDecoder.h"
#include "TLVEncoder.h"
#include "bstrlib.h"
}
constexpr uint8_t kEapMessageMinimumLength = 7;
constexpr uint16_t kEapMessageMaximumLength = 1503;
......
......@@ -23,7 +23,6 @@
#define _EPS_BEARER_CONTEXT_STATUS_H_
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kEpsBearerContextStatusLength = 4;
constexpr auto kEpsBearerContextStatusIeName = "EPS Bearer Context Status";
......
......@@ -23,7 +23,6 @@
#define EXTENDED_PROTOCOL_DISCRIMINATOR_H_
#include "NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kExtendedProtocolDiscriminatorLength = 1;
......
......@@ -23,7 +23,6 @@
#define _EXTENDED_DRX_PARAMETERS_H_
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kExtendedDrxParametersLength = 3;
constexpr auto kExtendedDrxParametersIeName = "Extended DRX Parameters";
......
......@@ -24,8 +24,6 @@
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kGprsTimer2Length = 3;
constexpr auto kGprsTimer2IeName = "GPRS Timer 2";
......
......@@ -23,7 +23,6 @@
#define _GPRS_TIMER_3_H_
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kGprsTimer3Length = 3;
constexpr auto kGprsTimer3IeName = "GPRS Timer 3";
......
......@@ -24,15 +24,6 @@
#include "Type6NasIe.hpp"
#include <stdint.h>
#include <iostream>
#include <vector>
extern "C" {
#include "TLVDecoder.h"
#include "TLVEncoder.h"
#include "bstrlib.h"
}
using namespace std;
constexpr uint8_t kLadnIndicationMinimumLength = 3;
......
......@@ -23,7 +23,6 @@
#define _MICO_INDICATION_H
#include "Type1NasIeFormatTv.hpp"
#include <stdint.h>
constexpr uint8_t kMicoIndicationIELength = 1;
constexpr auto kMicoIndicationIeName = "MICO Indication";
......
......@@ -23,7 +23,6 @@
#define _MESSAGE_TYPE_H_
#include "NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kNasMessageTypeIeSize = 1;
......
......@@ -24,8 +24,6 @@
#include "Type1NasIeFormatTv.hpp"
#include <stdint.h>
constexpr uint8_t kNetworkSlicingIndicationLength = 1;
constexpr auto kNetworkSlicingIndicationIeName = "Network Slicing Indication";
......
......@@ -23,7 +23,6 @@
#define _NON_3GPP_NW_PROVIDED_POLICIES_H
#include "Type1NasIeFormatTv.hpp"
#include <stdint.h>
constexpr uint8_t kNon3gppNwProvidedPoliciesLength = 1;
constexpr auto kNon3gppNwProvidedPoliciesIeName =
......
......@@ -23,7 +23,6 @@
#define _NSSAI_INCLUSION_MODE_H
#include "Type1NasIeFormatTv.hpp"
#include <stdint.h>
constexpr uint8_t kNssaiInclusionModeLength = 1;
constexpr auto kNssaiInclusionModeIeName = "NSSAI Inclusion Mode";
......
......@@ -22,7 +22,6 @@
#define _PDU_SESSION_REACTIVATION_RESULT_H_
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kPduSessionReactivationResultMinimumLength = 4;
constexpr uint8_t kPduSessionReactivationResultMaximumLength = 34;
......
......@@ -23,8 +23,6 @@
#define _PDU_SESSION_REACTIVATION_RESULT_ERROR_CAUSE_H_
#include "Type6NasIe.hpp"
#include <stdint.h>
#include <vector>
constexpr uint8_t kPduSessionReactivationResultErrorCauseMinimumLength = 5;
constexpr uint32_t kPduSessionReactivationResultErrorCauseMaximumLength = 515;
......
......@@ -23,10 +23,7 @@
#define _PLMN_LIST_H_
#include "Type4NasIe.hpp"
#include "struct.hpp"
#include <stdint.h>
#include <vector>
constexpr uint8_t kPlmnListMinimumLength = 5;
constexpr uint8_t kPlmnListMaximumLength = 47;
......
......@@ -24,8 +24,6 @@
#include "Type1NasIeFormatTv.hpp"
#include <stdint.h>
constexpr uint8_t kPayloadContainerTypeLength = 1;
constexpr auto kPayloadContainerTypeIeName = "Payload Container Type";
......
......@@ -19,22 +19,12 @@
* contact@openairinterface.org
*/
#ifndef __Payload_Container_H_
#define __Payload_Container_H_
#include <stdint.h>
#include <iostream>
#include <vector>
#ifndef _PAYLOAD_CONTAINER_H_
#define _PAYLOAD_CONTAINER_H_
#include "NasIeHeader.hpp"
#include "Type6NasIe.hpp"
extern "C" {
#include "TLVDecoder.h"
#include "TLVEncoder.h"
#include "bstrlib.h"
}
constexpr uint8_t kPayloadContainerMinimumLength = 4;
constexpr uint32_t kPayloadContainerMaximumLength = 65538;
constexpr auto kPayloadContainerIeName = "Payload Container";
......
......@@ -22,7 +22,6 @@
#define _SOR_TRANSPARENT_CONTAINER_H_
#include "Type6NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kSorTransparentContainerMinimumLength = 20;
constexpr uint8_t kSorTransparentContainerIeMinimumLength = 17;
......
......@@ -23,7 +23,6 @@
#define _SECURITY_HEADER_TYPE_H_
#include "NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kSecurityHeaderTypeLength = 1;
......
......@@ -21,6 +21,7 @@
#ifndef _STANDARD_L3_NAS_IE_H_
#define _STANDARD_L3_NAS_IE_H_
#include "NasIe.hpp"
namespace nas {
......
......@@ -24,8 +24,6 @@
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kUeNetworkCapabilityMinimumLength = 4;
constexpr uint8_t kUeNetworkCapabilityMaximumLength = 15;
constexpr auto kUeNetworkCapabilityIeName = "S1 UE Network Capability";
......
......@@ -23,7 +23,6 @@
#define _UE_STATUS_H_
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kUeStatusIeLength = 3;
constexpr auto kUeStatusIeName = "UE Status";
......
......@@ -24,8 +24,6 @@
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t kUeUsageSettingLength = 3;
constexpr auto kUeUsageSettingIeName = "UE's Usage Setting";
......
......@@ -24,9 +24,6 @@
#include "Type3NasIe.hpp"
#include <stdint.h>
#include <string>
constexpr uint8_t k5gsTrackingAreaIdentityLength = 7;
constexpr auto k5gsTrackingAreaIdentityIeName = "5GS Tracking Area Identity";
......
......@@ -24,8 +24,6 @@
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t k5gsDrxParametersLength = 3;
constexpr auto k5gsDrxParametersIeName = "5GS DRX Parameters";
......
......@@ -23,7 +23,6 @@
#define _5GS_NETWORK_FEATURE_SUPPORT_H
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t k5gsNetworkFeatureSupportMinimumLength = 3;
constexpr uint8_t k5gsNetworkFeatureSupportMaximumLength = 5;
......
......@@ -23,7 +23,6 @@
#define _5GS_REGISTRATION_RESULT_H_
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t k5gsRegistrationResultLength = 3;
constexpr uint8_t k5gsRegistrationResultContentLength = 1;
......
......@@ -19,11 +19,10 @@
* contact@openairinterface.org
*/
#ifndef __5GMM_Cause_H
#define __5GMM_Cause_H
#ifndef __5GMM_CAUSE_H
#define __5GMM_CAUSE_H
#include "Type3NasIe.hpp"
#include <stdint.h>
enum class _5gmmCauseEnum {
kIllegalUE = 0b00000011,
......
......@@ -23,7 +23,6 @@
#define _5GS_UPDATE_TYPE_H
#include "Type4NasIe.hpp"
#include <stdint.h>
constexpr uint8_t k5gsUpdateTypeLength = 3;
constexpr auto k5gsUpdateTypeIeName = "5GS Update Type";
......
......@@ -19,13 +19,6 @@
* contact@openairinterface.org
*/
/*! \file
\brief
\author Keliang DU, BUPT
\date 2020
\email: contact@openairinterface.org
*/
#ifndef _STRUCT_H_
#define _STRUCT_H_
#include <stdint.h>
......
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