Merge remote-tracking branch 'origin/remove-dead-code' into integration_2026_w05 (!3831)
semi-manual remove of not used #define commands
As i was upset to see all these #define with no code under, i made a
global pass to remove the obvious cases semi-manual remove of not used
bodies
manual script, then a lot of manual review
grep -IRs "#define" ../openair* ../common/* ../executables/ ../nfapi/ ../radio/ | \
fgrep -v '(' | fgrep -v '//' |awk '{print $2}' | egrep -v "#define *$n"| \
while read n ; do
grep -IRs $n ../openair* ../common/* ../executables/ ../nfapi/ ../radio/ | grep -v "#define *$n" | grep -q $n || echo $n;
done
will give a decent list of #define never used. Then, I think we should
keep lists of # define when it comes from standards, even if the code
doesn't use it right now
This commit is contained in:
@@ -50,7 +50,6 @@ typedef enum {
|
||||
RAT_EHRPD = 2003,
|
||||
} rat_type_t;
|
||||
|
||||
#define NUMBER_OF_RAT_TYPE 11
|
||||
|
||||
typedef enum {
|
||||
SS_SERVICE_GRANTED = 0,
|
||||
|
||||
@@ -62,9 +62,6 @@ typedef struct {
|
||||
} res_t;
|
||||
|
||||
#define FORMAT_128BITS "%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x,%02x"
|
||||
#define RAND_FORMAT FORMAT_128BITS
|
||||
#define AUTN_FORMAT FORMAT_128BITS
|
||||
#define KASME_FORMAT FORMAT_128BITS
|
||||
|
||||
#define DISPLAY_128BITS(bUFFER) \
|
||||
bUFFER[0], bUFFER[1], bUFFER[2], bUFFER[3], bUFFER[4], bUFFER[5], bUFFER[6], bUFFER[7], \
|
||||
|
||||
@@ -1,178 +0,0 @@
|
||||
/*
|
||||
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The OpenAirInterface Software Alliance licenses this file to You under
|
||||
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.openairinterface.org/?page_id=698
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*-------------------------------------------------------------------------------
|
||||
* For more information about the OpenAirInterface (OAI) Software Alliance:
|
||||
* contact@openairinterface.org
|
||||
*/
|
||||
|
||||
/*! \file openair2/ENB_APP/enb_paramdef_mce.h
|
||||
* \brief definition of configuration parameters for MME modules
|
||||
* \author Javier MORGADE
|
||||
* \date 2019
|
||||
* \version 0.1
|
||||
* \company VICOMTECH Spain
|
||||
* \email: javier.morgade@ieee.org
|
||||
* \note
|
||||
* \warning
|
||||
*/
|
||||
|
||||
#ifndef __MME_APP_ENB_PARAMDEF_MME__H__
|
||||
#define __MME_APP_ENB_PARAMDEF_MME__H__
|
||||
|
||||
#include "common/config/config_paramdesc.h"
|
||||
#include "RRC_paramsvalues.h"
|
||||
|
||||
#define ENB_CONFIG_STRING_MME_PARAMETERS "mme_parameters"
|
||||
//#define ENB_CONFIG_STRING_SCHEDULING_INFO_BR "scheduling_info_br"
|
||||
//#define ENB_CONFIG_STRING_RSRP_RANGE_LIST "rsrp_range_list"
|
||||
//#define ENB_CONFIG_STRING_PRACH_CONFIG_COMMON_V1310 "prach_ConfigCommon_v1310"
|
||||
//#define ENB_CONFIG_STRING_MPDCCH_START_SF_CSS_RA_R13 "mpdcch_startSF_CSS_RA_r13"
|
||||
//#define ENB_CONFIG_STRING_MPDCCH_START_SF_CSS_RA_R13_VAL "mpdcch_startSF_CSS_RA_r13_val"
|
||||
//#define ENB_CONFIG_STRING_PRACH_HOPPING_OFFSET_R13 "prach_HoppingOffset_r13"
|
||||
//#define ENB_CONFIG_STRING_SCHEDULING_INFO_SIB1_BR_R13 "schedulingInfoSIB1_BR_r13"
|
||||
//#define ENB_CONFIG_STRING_CELL_SELECTION_INFO_CE_R13 "cellSelectionInfoCE_r13"
|
||||
//#define ENB_CONFIG_STRING_Q_RX_LEV_MIN_CE_R13 "q_RxLevMinCE_r13"
|
||||
//#define ENB_CONFIG_STRING_BANDWIDTH_REDUCED_ACCESS_RELATED_INFO_R13 "bandwidthReducedAccessRelatedInfo_r13"
|
||||
//#define ENB_CONFIG_STRING_SI_WINDOW_LENGTH_BR_R13 "si_WindowLength_BR_r13"
|
||||
//#define ENB_CONFIG_STRING_SI_REPETITION_PATTERN_R13 "si_RepetitionPattern_r13"
|
||||
//#define ENB_CONFIG_STRING_FDD_DOWNLINK_OR_TDD_SUBFRAME_BITMAP_BR_R13 "fdd_DownlinkOrTddSubframeBitmapBR_r13"
|
||||
//#define ENB_CONFIG_STRING_FDD_DOWNLINK_OR_TDD_SUBFRAME_BITMAP_BR_VAL_R13 "fdd_DownlinkOrTddSubframeBitmapBR_val_r13"
|
||||
//#define ENB_CONFIG_STRING_START_SYMBOL_BR_R13 "startSymbolBR_r13"
|
||||
//#define ENB_CONFIG_STRING_SI_HOPPING_CONFIG_COMMON_R13 "si_HoppingConfigCommon_r13"
|
||||
//#define ENB_CONFIG_STRING_SI_VALIDITY_TIME_R13 "si_ValidityTime_r13"
|
||||
//#define ENB_CONFIG_STRING_FREQ_HOPPING_PARAMETERS_DL_R13 "freqHoppingParametersDL_r13"
|
||||
//#define ENB_CONFIG_STRING_MPDCCH_PDSCH_HOPPING_NB_R13 "mpdcch_pdsch_HoppingNB_r13"
|
||||
//#define ENB_CONFIG_STRING_INTERVAL_DL_HOPPING_CONFIG_COMMON_MODE_A_R13 "interval_DLHoppingConfigCommonModeA_r13"
|
||||
//#define ENB_CONFIG_STRING_INTERVAL_DL_HOPPING_CONFIG_COMMON_MODE_A_R13_VAL "interval_DLHoppingConfigCommonModeA_r13_val"
|
||||
//#define ENB_CONFIG_STRING_INTERVAL_DL_HOPPING_CONFIG_COMMON_MODE_B_R13 "interval_DLHoppingConfigCommonModeB_r13"
|
||||
//#define ENB_CONFIG_STRING_INTERVAL_DL_HOPPING_CONFIG_COMMON_MODE_B_R13_VAL "interval_DLHoppingConfigCommonModeB_r13_val"
|
||||
//#define ENB_CONFIG_STRING_MPDCCH_PDSCH_HOPPING_OFFSET_R13 "mpdcch_pdsch_HoppingOffset_r13"
|
||||
//#define ENB_CONFIG_STRING_PREAMBLE_TRANSMAX_CE_R13 "preamble_TransMax_ce_r13"
|
||||
//#define ENB_CONFIG_STRING_PREAMBLE_TRANSMAX_CE_R13_VAL "preamble_TransMax_ce_r13_val"
|
||||
//#define ENB_CONFIG_STRING_PDSCH_MAX_NUM_REPETITION_CE_MODE_A_R13 "pdsch_maxNumRepetitionCEmodeA_r13"
|
||||
//#define ENB_CONFIG_STRING_PDSCH_MAX_NUM_REPETITION_CE_MODE_B_R13 "pdsch_maxNumRepetitionCEmodeB_r13"
|
||||
//#define ENB_CONFIG_STRING_PUSCH_MAX_NUM_REPETITION_CE_MODE_A_R13 "pusch_maxNumRepetitionCEmodeA_r13"
|
||||
//#define ENB_CONFIG_STRING_PUSCH_MAX_NUM_REPETITION_CE_MODE_B_R13 "pusch_maxNumRepetitionCEmodeB_r13"
|
||||
//#define ENB_CONFIG_STRING_PUSCH_HOPPING_OFFSET_V1310 "pusch_HoppingOffset_v1310"
|
||||
//#define ENB_CONFIG_STRING_SYSTEM_INFO_VALUE_TAG_LIST "system_info_value_tag_SI"
|
||||
//#define ENB_CONFIG_STRING_FIRST_PREAMBLE_R13 "firstPreamble_r13"
|
||||
//#define ENB_CONFIG_STRING_LAST_PREAMBLE_R13 "lastPreamble_r13"
|
||||
//#define ENB_CONFIG_STRING_RA_RESPONSE_WINDOW_SIZE_R13 "ra_ResponseWindowSize_r13"
|
||||
//#define ENB_CONFIG_STRING_MAC_CONTENTION_RESOLUTION_TIMER_R13 "mac_ContentionResolutionTimer_r13"
|
||||
//#define ENB_CONFIG_STRING_RAR_HOPPING_CONFIG_R13 "rar_HoppingConfig_r13"
|
||||
//#define ENB_CONFIG_STRING_RACH_CE_LEVELINFOLIST_R13 "rach_CE_LevelInfoList_r13"
|
||||
//#define ENB_CONFIG_STRING_PRACH_CONFIG_INDEX_BR "prach_config_index_br"
|
||||
//#define ENB_CONFIG_STRING_PRACH_FREQ_OFFSET_BR "prach_freq_offset_br"
|
||||
//#define ENB_CONFIG_STRING_PRACH_STARTING_SUBFRAME_R13 "prach_StartingSubframe_r13"
|
||||
//#define ENB_CONFIG_STRING_MAX_NUM_PER_PREAMBLE_ATTEMPT_CE_R13 "maxNumPreambleAttemptCE_r13"
|
||||
//#define ENB_CONFIG_STRING_NUM_REPETITION_PER_PREAMBLE_ATTEMPT_R13 "numRepetitionPerPreambleAttempt_r13"
|
||||
//#define ENB_CONFIG_STRING_MPDCCH_NUM_REPETITION_RA_R13 "mpdcch_NumRepetition_RA_r13"
|
||||
//#define ENB_CONFIG_STRING_PRACH_HOPPING_CONFIG_R13 "prach_HoppingConfig_r13"
|
||||
//#define ENB_CONFIG_SRING_MAX_AVAILABLE_NARROW_BAND "max_available_narrow_band"
|
||||
//#define ENB_CONFIG_STRING_PRACH_PARAMETERS_CE_R13 "prach_parameters_ce_r13"
|
||||
//#define ENB_CONFIG_STRING_PUCCH_INFO_VALUE "pucch_info_value"
|
||||
//#define ENB_CONFIG_STRING_N1PUCCH_AN_INFOLIST_R13 "n1PUCCH_AN_InfoList_r13"
|
||||
//#define ENB_CONFIG_STRING_PCCH_CONFIG_V1310 "pcch_config_v1310"
|
||||
//#define ENB_CONFIG_STRING_PAGING_NARROWBANDS_R13 "paging_narrowbands_r13"
|
||||
//#define ENB_CONFIG_STRING_MPDCCH_NUMREPETITION_PAGING_R13 "mpdcch_numrepetition_paging_r13"
|
||||
//#define ENB_CONFIG_STRING_NB_V1310 "nb_v1310"
|
||||
//#define ENB_CONFIG_STRING_SIB2_FREQ_HOPPINGPARAMETERS_R13 "sib2_freq_hoppingParameters_r13"
|
||||
|
||||
typedef struct ccparams_MME_s {
|
||||
/// indicator that eMTC is configured for this cell
|
||||
int32_t MME_configured;
|
||||
// /// the SIB2 parameters for eMTC SIB2
|
||||
// ccparams_lte_t ccparams;
|
||||
// int si_Narrowband_r13;
|
||||
// int si_TBS_r13;
|
||||
// int systemInfoValueTagSi_r13;
|
||||
// int firstPreamble_r13;
|
||||
// int lastPreamble_r13;
|
||||
// int ra_ResponseWindowSize_r13;
|
||||
// int mac_ContentionResolutionTimer_r13;
|
||||
// int rar_HoppingConfig_r13;
|
||||
// int rsrp_range_br;
|
||||
// int prach_config_index_br;
|
||||
// int prach_freq_offset_br;
|
||||
// int prach_StartingSubframe_r13;
|
||||
// int maxNumPreambleAttemptCE_r13;
|
||||
// int numRepetitionPerPreambleAttempt_r13;
|
||||
// int mpdcch_NumRepetition_RA_r13;
|
||||
// int prach_HoppingConfig_r13;
|
||||
// int *maxavailablenarrowband;
|
||||
// int pucch_info_value;
|
||||
// int paging_narrowbands_r13;
|
||||
// int mpdcch_numrepetition_paging_r13;
|
||||
// int nb_v1310;
|
||||
// char *pucch_NumRepetitionCE_Msg4_Level0_r13;
|
||||
// char *pucch_NumRepetitionCE_Msg4_Level1_r13;
|
||||
// char *pucch_NumRepetitionCE_Msg4_Level2_r13;
|
||||
// char *pucch_NumRepetitionCE_Msg4_Level3_r13;
|
||||
// int sib2_mpdcch_pdsch_hoppingNB_r13;
|
||||
// char *sib2_interval_DLHoppingConfigCommonModeA_r13;
|
||||
// int sib2_interval_DLHoppingConfigCommonModeA_r13_val;
|
||||
// char *sib2_interval_DLHoppingConfigCommonModeB_r13;
|
||||
// int sib2_interval_DLHoppingConfigCommonModeB_r13_val;
|
||||
// char *sib2_interval_ULHoppingConfigCommonModeA_r13;
|
||||
// int sib2_interval_ULHoppingConfigCommonModeA_r13_val;
|
||||
// char *sib2_interval_ULHoppingConfigCommonModeB_r13;
|
||||
// int sib2_interval_ULHoppingConfigCommonModeB_r13_val;
|
||||
// int sib2_mpdcch_pdsch_hoppingOffset_r13;
|
||||
// int pusch_HoppingOffset_v1310;
|
||||
// int hyperSFN_r13;
|
||||
// int eDRX_Allowed_r13;
|
||||
// int q_RxLevMinCE_r13;
|
||||
// int q_QualMinRSRQ_CE_r13;
|
||||
// char *si_WindowLength_BR_r13;
|
||||
// char *si_RepetitionPattern_r13;
|
||||
// int startSymbolBR_r13;
|
||||
// char *si_HoppingConfigCommon_r13;
|
||||
// char *si_ValidityTime_r13;
|
||||
// char *mpdcch_pdsch_HoppingNB_r13;
|
||||
// int interval_DLHoppingConfigCommonModeA_r13_val;
|
||||
// int interval_DLHoppingConfigCommonModeB_r13_val;
|
||||
// int mpdcch_pdsch_HoppingOffset_r13;
|
||||
// char *preambleTransMax_CE_r13;
|
||||
// int prach_HoppingOffset_r13;
|
||||
// int schedulingInfoSIB1_BR_r13;
|
||||
// int64_t fdd_DownlinkOrTddSubframeBitmapBR_val_r13;
|
||||
// char *cellSelectionInfoCE_r13;
|
||||
// char *bandwidthReducedAccessRelatedInfo_r13;
|
||||
// char *fdd_DownlinkOrTddSubframeBitmapBR_r13;
|
||||
// char *fdd_UplinkSubframeBitmapBR_r13;
|
||||
// char *freqHoppingParametersDL_r13;
|
||||
// char *interval_DLHoppingConfigCommonModeA_r13;
|
||||
// char *interval_DLHoppingConfigCommonModeB_r13;
|
||||
// char *prach_ConfigCommon_v1310;
|
||||
// char *mpdcch_startSF_CSS_RA_r13;
|
||||
// char *mpdcch_startSF_CSS_RA_r13_val;
|
||||
// char *pdsch_maxNumRepetitionCEmodeA_r13;
|
||||
// char *pdsch_maxNumRepetitionCEmodeB_r13;
|
||||
// char *pusch_maxNumRepetitionCEmodeA_r13;
|
||||
// char *pusch_maxNumRepetitionCEmodeB_r13;
|
||||
} ccparams_MME_t;
|
||||
|
||||
|
||||
#define MMEPARAMS_DESC(MMEconfig) { \
|
||||
{"MME_configured", NULL, 0, iptr:&MMEconfig->MME_configured, defintval:0, TYPE_UINT, 0} \
|
||||
}
|
||||
|
||||
#define MMEPARAMS_CHECK { \
|
||||
{ .s5= {NULL }} \
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -45,7 +45,6 @@ Description Defines identifiers of the EPS Mobility Management messages.
|
||||
|
||||
/* Header length boundaries of EPS Mobility Management messages */
|
||||
#define EMM_HEADER_LENGTH sizeof(emm_msg_header_t)
|
||||
#define EMM_HEADER_MINIMUM_LENGTH EMM_HEADER_LENGTH
|
||||
#define EMM_HEADER_MAXIMUM_LENGTH EMM_HEADER_LENGTH
|
||||
|
||||
/* EPS Mobility Management Security header type */
|
||||
|
||||
@@ -46,8 +46,6 @@ Description Defines identifiers of the EPS Session Management messages
|
||||
|
||||
/* Header length boundaries of EPS Session Management messages */
|
||||
#define ESM_HEADER_LENGTH sizeof(esm_msg_header_t)
|
||||
#define ESM_HEADER_MINIMUM_LENGTH ESM_HEADER_LENGTH
|
||||
#define ESM_HEADER_MAXIMUM_LENGTH ESM_HEADER_LENGTH
|
||||
|
||||
/* Message identifiers for EPS Session Management */
|
||||
# define ACTIVATE_DEFAULT_EPS_BEARER_CONTEXT_REQUEST 0b11000001 /* 193 = 0xc1 */
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
|
||||
#ifndef ADDITIONAL_UPDATE_TYPE_H_
|
||||
#define ADDITIONAL_UPDATE_TYPE_H_
|
||||
|
||||
#define ADDITIONAL_UPDATE_TYPE_MINIMUM_LENGTH 1
|
||||
#define ADDITIONAL_UPDATE_TYPE_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef uint8_t AdditionalUpdateType;
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
typedef struct {
|
||||
uint8_t spare:4;
|
||||
#define EPS_MOBILE_IDENTITY_EVEN 0
|
||||
#define EPS_MOBILE_IDENTITY_ODD 1
|
||||
uint8_t oddeven:1;
|
||||
uint8_t typeofidentity:3;
|
||||
uint8_t mccdigit2:4;
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
#ifndef MESSAGE_TYPE_H_
|
||||
#define MESSAGE_TYPE_H_
|
||||
|
||||
#define MESSAGE_TYPE_MINIMUM_LENGTH 1
|
||||
#define MESSAGE_TYPE_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef uint8_t MessageType;
|
||||
|
||||
int encode_message_type(MessageType *messagetype, uint8_t iei, uint8_t *buffer, uint32_t len);
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#ifndef MOBILE_STATION_CLASSMARK_3_H_
|
||||
#define MOBILE_STATION_CLASSMARK_3_H_
|
||||
|
||||
#define MOBILE_STATION_CLASSMARK_3_MINIMUM_LENGTH 1
|
||||
#define MOBILE_STATION_CLASSMARK_3_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#define NAS_REQUEST_TYPE_H_
|
||||
|
||||
#define REQUEST_TYPE_MINIMUM_LENGTH 1
|
||||
#define REQUEST_TYPE_MAXIMUM_LENGTH 1
|
||||
|
||||
#define REQUEST_TYPE_INITIAL_REQUEST 0b001
|
||||
#define REQUEST_TYPE_HANDOVER 0b010
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
#ifndef PROCEDURE_TRANSACTION_IDENTITY_H_
|
||||
#define PROCEDURE_TRANSACTION_IDENTITY_H_
|
||||
|
||||
#define PROCEDURE_TRANSACTION_IDENTITY_MINIMUM_LENGTH 1
|
||||
#define PROCEDURE_TRANSACTION_IDENTITY_MAXIMUM_LENGTH 1
|
||||
|
||||
#define PROCEDURE_TRANSACTION_IDENTITY_UNASSIGNED 0
|
||||
#define PROCEDURE_TRANSACTION_IDENTITY_FIRST 1
|
||||
#define PROCEDURE_TRANSACTION_IDENTITY_LAST 254
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
#ifndef PROTOCOL_DISCRIMINATOR_H_
|
||||
#define PROTOCOL_DISCRIMINATOR_H_
|
||||
|
||||
#define PROTOCOL_DISCRIMINATOR_MINIMUM_LENGTH 1
|
||||
#define PROTOCOL_DISCRIMINATOR_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef uint8_t ProtocolDiscriminator;
|
||||
|
||||
int encode_protocol_discriminator(ProtocolDiscriminator *protocoldiscriminator, uint8_t iei, uint8_t *buffer, uint32_t len);
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
#ifndef SECURITY_HEADER_TYPE_H_
|
||||
#define SECURITY_HEADER_TYPE_H_
|
||||
|
||||
#define SECURITY_HEADER_TYPE_MINIMUM_LENGTH 1
|
||||
#define SECURITY_HEADER_TYPE_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef uint8_t SecurityHeaderType;
|
||||
|
||||
int encode_security_header_type(SecurityHeaderType *securityheadertype, uint8_t iei, uint8_t *buffer, uint32_t len);
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#ifndef TRANSACTION_IDENTIFIER_H_
|
||||
#define TRANSACTION_IDENTIFIER_H_
|
||||
|
||||
#define TRANSACTION_IDENTIFIER_MINIMUM_LENGTH 1
|
||||
#define TRANSACTION_IDENTIFIER_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -78,19 +78,14 @@ typedef struct UeNetworkCapability_tag {
|
||||
/* Bits 8 to 6 of octet 7 are spare and shall be coded as zero */
|
||||
uint8_t spare:3;
|
||||
/* eNodeB-based access class control for CSFB capability */
|
||||
#define UE_NETWORK_CAPABILITY_CSFB 1
|
||||
uint8_t csfb:1;
|
||||
/* LTE Positioning Protocol capability */
|
||||
#define UE_NETWORK_CAPABILITY_LPP 1
|
||||
uint8_t lpp:1;
|
||||
/* Location services notification mechanisms capability */
|
||||
#define UE_NETWORK_CAPABILITY_LCS 1
|
||||
uint8_t lcs:1;
|
||||
/* 1xSRVCC capability */
|
||||
#define UE_NETWORK_CAPABILITY_SRVCC 1
|
||||
uint8_t srvcc:1;
|
||||
/* NF notification procedure capability */
|
||||
#define UE_NETWORK_CAPABILITY_NF 1
|
||||
uint8_t nf:1;
|
||||
|
||||
uint8_t umts_present;
|
||||
|
||||
@@ -33,54 +33,16 @@
|
||||
|
||||
typedef struct UeSecurityCapability_tag {
|
||||
/* EPS encryption algorithms supported (octet 3) */
|
||||
#define UE_SECURITY_CAPABILITY_EEA0 0b10000000
|
||||
#define UE_SECURITY_CAPABILITY_EEA1 0b01000000
|
||||
#define UE_SECURITY_CAPABILITY_EEA2 0b00100000
|
||||
#define UE_SECURITY_CAPABILITY_EEA3 0b00010000
|
||||
#define UE_SECURITY_CAPABILITY_EEA4 0b00001000
|
||||
#define UE_SECURITY_CAPABILITY_EEA5 0b00000100
|
||||
#define UE_SECURITY_CAPABILITY_EEA6 0b00000010
|
||||
#define UE_SECURITY_CAPABILITY_EEA7 0b00000001
|
||||
uint8_t eea;
|
||||
/* EPS integrity algorithms supported (octet 4) */
|
||||
#define UE_SECURITY_CAPABILITY_EIA0 0b10000000
|
||||
#define UE_SECURITY_CAPABILITY_EIA1 0b01000000
|
||||
#define UE_SECURITY_CAPABILITY_EIA2 0b00100000
|
||||
#define UE_SECURITY_CAPABILITY_EIA3 0b00010000
|
||||
#define UE_SECURITY_CAPABILITY_EIA4 0b00001000
|
||||
#define UE_SECURITY_CAPABILITY_EIA5 0b00000100
|
||||
#define UE_SECURITY_CAPABILITY_EIA6 0b00000010
|
||||
#define UE_SECURITY_CAPABILITY_EIA7 0b00000001
|
||||
uint8_t eia;
|
||||
uint8_t umts_present;
|
||||
uint8_t gprs_present;
|
||||
/* UMTS encryption algorithms supported (octet 5) */
|
||||
#define UE_SECURITY_CAPABILITY_UEA0 0b10000000
|
||||
#define UE_SECURITY_CAPABILITY_UEA1 0b01000000
|
||||
#define UE_SECURITY_CAPABILITY_UEA2 0b00100000
|
||||
#define UE_SECURITY_CAPABILITY_UEA3 0b00010000
|
||||
#define UE_SECURITY_CAPABILITY_UEA4 0b00001000
|
||||
#define UE_SECURITY_CAPABILITY_UEA5 0b00000100
|
||||
#define UE_SECURITY_CAPABILITY_UEA6 0b00000010
|
||||
#define UE_SECURITY_CAPABILITY_UEA7 0b00000001
|
||||
uint8_t uea;
|
||||
/* UMTS integrity algorithms supported (octet 6) */
|
||||
#define UE_SECURITY_CAPABILITY_UIA1 0b01000000
|
||||
#define UE_SECURITY_CAPABILITY_UIA2 0b00100000
|
||||
#define UE_SECURITY_CAPABILITY_UIA3 0b00010000
|
||||
#define UE_SECURITY_CAPABILITY_UIA4 0b00001000
|
||||
#define UE_SECURITY_CAPABILITY_UIA5 0b00000100
|
||||
#define UE_SECURITY_CAPABILITY_UIA6 0b00000010
|
||||
#define UE_SECURITY_CAPABILITY_UIA7 0b00000001
|
||||
uint8_t uia:7;
|
||||
/* GPRS encryption algorithms supported (octet 7) */
|
||||
#define UE_SECURITY_CAPABILITY_GEA1 0b01000000
|
||||
#define UE_SECURITY_CAPABILITY_GEA2 0b00100000
|
||||
#define UE_SECURITY_CAPABILITY_GEA3 0b00010000
|
||||
#define UE_SECURITY_CAPABILITY_GEA4 0b00001000
|
||||
#define UE_SECURITY_CAPABILITY_GEA5 0b00000100
|
||||
#define UE_SECURITY_CAPABILITY_GEA6 0b00000010
|
||||
#define UE_SECURITY_CAPABILITY_GEA7 0b00000001
|
||||
uint8_t gea:7;
|
||||
} UeSecurityCapability;
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#define VOICE_DOMAIN_PREFERENCE_AND_UE_USAGE_SETTING_H_
|
||||
|
||||
#define VOICE_DOMAIN_PREFERENCE_AND_UE_USAGE_SETTING_MINIMUM_LENGTH 1
|
||||
#define VOICE_DOMAIN_PREFERENCE_AND_UE_USAGE_SETTING_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef struct VoiceDomainPreferenceAndUeUsageSetting_tag {
|
||||
uint8_t spare:5;
|
||||
|
||||
@@ -61,17 +61,6 @@ Description Usefull logging functions
|
||||
* ON : Enables logging traces excepted FUNC.
|
||||
* ALL : Turns on ALL logging traces.
|
||||
*/
|
||||
#define NAS_LOG_OFF 0x00 /* No trace */
|
||||
#define NAS_LOG_DEBUG 0x01 /* Debug trace */
|
||||
#define NAS_LOG_INFO 0x02 /* Informational trace */
|
||||
#define NAS_LOG_WARNING 0x04 /* Warning trace */
|
||||
#define NAS_LOG_ERROR 0x08 /* Error trace */
|
||||
#define NAS_LOG_FUNC 0x10 /* Entering/Leaving function trace */
|
||||
#define NAS_LOG_HEX 0x20 /* Dump trace */
|
||||
|
||||
#define NAS_LOG_ON 0x0F /* All traces excepted FUNC and HEX */
|
||||
#define NAS_LOG_ALL 0xFF /* All traces */
|
||||
|
||||
/* Logging severity type */
|
||||
typedef enum {
|
||||
DEBUG,
|
||||
@@ -83,18 +72,6 @@ typedef enum {
|
||||
LOG_SEVERITY_MAX
|
||||
} log_severity_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/************************ G L O B A L T Y P E S ************************/
|
||||
/****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/******************** G L O B A L V A R I A B L E S ********************/
|
||||
/****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/****************** E X P O R T E D F U N C T I O N S ******************/
|
||||
/****************************************************************************/
|
||||
|
||||
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
|
||||
#ifdef LOG_E
|
||||
|
||||
|
||||
@@ -53,12 +53,9 @@ Description Contains global security definitions
|
||||
* Size of the authentication challenge parameters in bytes
|
||||
*/
|
||||
#define AUTH_SQN_SIZE 6 /* Sequence number: 48 bits */
|
||||
#define AUTH_AK_SIZE 6 /* Anonymity key: 48 bits */
|
||||
#define AUTH_AMF_SIZE 2 /* Authentication Management Field: 16 bits */
|
||||
#define AUTH_MAC_SIZE 8 /* Message Authentication Code: 64 bits */
|
||||
#define AUTH_AUTN_SIZE 16 /* Authentication token: 128 bits
|
||||
AUTN = (SQN ⊕ AK) || AMF || MAC */
|
||||
#define AUTH_MACS_SIZE 8 /* Re-synchronization MAC: 64 bits */
|
||||
#define AUTH_AUTS_SIZE 16 /* Re-synchronization AUT: 128 bits */
|
||||
#define AUTH_RAND_SIZE 16 /* Random challenge: 128 bits */
|
||||
#define AUTH_CK_SIZE 16 /* Ciphering key: 128 bits */
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#define FGC_NAS_MESSAGE_CONTAINER_H_
|
||||
|
||||
#define FGC_NAS_MESSAGE_CONTAINER_MINIMUM_LENGTH 4
|
||||
#define FGC_NAS_MESSAGE_CONTAINER_MAXIMUM_LENGTH 65535
|
||||
|
||||
typedef struct FGCNasMessageContainer_tag {
|
||||
OctetString nasmessagecontainercontents;
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include <stdint.h>
|
||||
#include "OctetString.h"
|
||||
|
||||
#define FGS_DEREGISTRATION_TYPE_MINIMUM_LENGTH 1
|
||||
#define FGS_DEREGISTRATION_TYPE_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef struct FGSDeregistrationType_tag {
|
||||
#define NORMAL_DEREGISTRATION 0
|
||||
|
||||
@@ -35,8 +35,6 @@
|
||||
#ifndef FGS_REGISTRATION_TYPE_H_
|
||||
#define FGS_REGISTRATION_TYPE_H_
|
||||
|
||||
#define FGS_REGISTRATION_TYPE_MINIMUM_LENGTH 1
|
||||
#define FGS_REGISTRATION_TYPE_MAXIMUM_LENGTH 1
|
||||
|
||||
typedef uint8_t FGSRegistrationType;
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ typedef enum { FOREACH_IEI(TO_ENUM) } pduSessionEstablishment_IEI_t;
|
||||
#define PDU_SESSION_TYPE_ETHER 0b101
|
||||
#define IPv4_ADDRESS_LENGTH 4 // length of the IPv4 address associated with a PDU session
|
||||
#define IPv6_INTERFACE_ID_LENGTH 8 // interface identifier for the IPv6 link local address
|
||||
#define SMF_IPv6_LLA_LENGTH 16
|
||||
|
||||
/* Rule operation codes - TS 24.501 Table 9.11.4.13.1 */
|
||||
|
||||
|
||||
@@ -43,10 +43,7 @@
|
||||
|
||||
#define INITIAL_REGISTRATION 0b001
|
||||
|
||||
#define PLAIN_5GS_NAS_MESSAGE_HEADER_LENGTH 3
|
||||
#define SECURITY_PROTECTED_5GS_NAS_MESSAGE_HEADER_LENGTH 7
|
||||
#define PAYLOAD_CONTAINER_LENGTH_MIN 3
|
||||
#define PAYLOAD_CONTAINER_LENGTH_MAX 65537
|
||||
#define NAS_INTEGRITY_SIZE 4
|
||||
|
||||
/* 3GPP TS 24.501: 9.11.3.50 Service type */
|
||||
|
||||
@@ -12,9 +12,6 @@
|
||||
#define MNC "MNC"
|
||||
#define MCC "MCC"
|
||||
|
||||
#define MIN_TAC 0x0000
|
||||
#define MAX_TAC 0xFFFE
|
||||
|
||||
/*
|
||||
* PLMN network operator record
|
||||
*/
|
||||
|
||||
@@ -59,12 +59,6 @@ Description Defines the ATtention (AT) command set supported by the NAS
|
||||
#define AT_COMMAND_PARAM8 0x0080 /* 8th parameter is present */
|
||||
#define AT_COMMAND_PARAM9 0x0100 /* 9th parameter is present */
|
||||
#define AT_COMMAND_PARAM10 0x0200 /* 10th parameter is present */
|
||||
#define AT_COMMAND_PARAM11 0x0400 /* 11th parameter is present */
|
||||
#define AT_COMMAND_PARAM12 0x0800 /* 12th parameter is present */
|
||||
#define AT_COMMAND_PARAM13 0x1000 /* 13th parameter is present */
|
||||
#define AT_COMMAND_PARAM14 0x2000 /* 14th parameter is present */
|
||||
#define AT_COMMAND_PARAM15 0x4000 /* 15th parameter is present */
|
||||
#define AT_COMMAND_PARAM16 0x8000 /* 16th parameter is present */
|
||||
|
||||
/* Value of the mask parameter for AT commands without any parameters */
|
||||
#define AT_COMMAND_NO_PARAM AT_COMMAND_PARAM0
|
||||
@@ -249,8 +243,6 @@ typedef struct at_cimi_s {
|
||||
/* Functionality levels */
|
||||
#define AT_CFUN_MIN 0 /* minimum functionality */
|
||||
#define AT_CFUN_FULL 1 /* full functionality */
|
||||
#define AT_CFUN_SEND 2 /* disable phone transmit RF circuits only */
|
||||
#define AT_CFUN_RECV 3 /* disable phone receive RF circuits only */
|
||||
#define AT_CFUN_BOTH 4 /* disable phone both transmit and receive
|
||||
* RF circuits */
|
||||
#define AT_CFUN_MAX AT_CFUN_BOTH
|
||||
@@ -265,7 +257,6 @@ typedef struct at_cimi_s {
|
||||
* is not given) */
|
||||
#define AT_CFUN_RST 1 /* reset the ME before setting it to <fun>
|
||||
* power level */
|
||||
#define AT_CFUN_RST_DEFAULT AT_CFUN_NORST
|
||||
/* Default resetting action applied when
|
||||
* no value is given */
|
||||
/* Optional parameter bitmask */
|
||||
@@ -468,12 +459,6 @@ typedef struct {
|
||||
* no value is given */
|
||||
/* Access technology indicators */
|
||||
#define AT_COPS_GSM NET_ACCESS_GSM /* GSM */
|
||||
#define AT_COPS_COMPACT NET_ACCESS_COMPACT /* GSM Compact */
|
||||
#define AT_COPS_UTRAN NET_ACCESS_UTRAN /* UTRAN */
|
||||
#define AT_COPS_EGPRS NET_ACCESS_EGPRS /* GSM w/EGPRS */
|
||||
#define AT_COPS_HSDPA NET_ACCESS_HSDPA /* UTRAN w/HSDPA */
|
||||
#define AT_COPS_HSUPA NET_ACCESS_HSUPA /* UTRAN w/HSUPA */
|
||||
#define AT_COPS_HSDUPA NET_ACCESS_HSDUPA /* w/HSDPA and HSUPA */
|
||||
#define AT_COPS_EUTRAN NET_ACCESS_EUTRAN /* E-UTRAN */
|
||||
#define AT_COPS_ACT_MIN AT_COPS_GSM
|
||||
/* Minimum value of supported access
|
||||
@@ -675,21 +660,15 @@ typedef struct {
|
||||
#define AT_CGDCONT_CID_DEFAULT AT_CGDCONT_CID_MIN
|
||||
/* PDP data compression parameter values */
|
||||
#define AT_CGDCONT_D_COMP_OFF 0 /* PDP data compression is disabled */
|
||||
#define AT_CGDCONT_D_COMP_ON 1 /* manufacturer preferred compression */
|
||||
#define AT_CGDCONT_D_COMP_V42B 2 /* V.42bis */
|
||||
#define AT_CGDCONT_D_COMP_V44 3 /* V.44 */
|
||||
#define AT_CGDCONT_D_COMP_MIN AT_CGDCONT_D_COMP_OFF
|
||||
#define AT_CGDCONT_D_COMP_MAX AT_CGDCONT_D_COMP_V44
|
||||
#define AT_CGDCONT_D_COMP_DEFAULT AT_CGDCONT_D_COMP_OFF
|
||||
/* PDP header compression parameter values */
|
||||
#define AT_CGDCONT_H_COMP_OFF 0 /* PDP header compression is disabled */
|
||||
#define AT_CGDCONT_H_COMP_ON 1 /* manufacturer preferred compression */
|
||||
#define AT_CGDCONT_H_COMP_1144 2 /* RFC1144 (applicable for SNDCP only) */
|
||||
#define AT_CGDCONT_H_COMP_2507 3 /* RFC2507 */
|
||||
#define AT_CGDCONT_H_COMP_3095 4 /* RFC3095 (applicable for PDCP only) */
|
||||
#define AT_CGDCONT_H_COMP_MIN AT_CGDCONT_H_COMP_OFF
|
||||
#define AT_CGDCONT_H_COMP_MAX AT_CGDCONT_H_COMP_3095
|
||||
#define AT_CGDCONT_H_COMP_DEFAULT AT_CGDCONT_H_COMP_OFF
|
||||
/* IPv4AddrAlloc parameter values */
|
||||
#define AT_CGDCONT_IPV4_NAS 0 /* IPv4 Address Allocation through NAS
|
||||
* Signalling */
|
||||
@@ -708,8 +687,6 @@ typedef struct {
|
||||
/* P_CSCF_discovery parameter values */
|
||||
#define AT_CGDCONT_PCSCF_OFF 0 /* Preference of P-CSCF address discovery
|
||||
* not influenced by +CGDCONTPDP */
|
||||
#define AT_CGDCONT_PCSCF_NAS 1 /* Preference of P-CSCF address discovery
|
||||
* through NAS Signalling */
|
||||
#define AT_CGDCONT_PCSCF_DHCP 2 /* Preference of P-CSCF address discovery
|
||||
* through DHCP */
|
||||
#define AT_CGDCONT_PCSCF_MIN AT_CGDCONT_PCSCF_OFF
|
||||
|
||||
@@ -52,7 +52,6 @@ Description Implements the API used by the NAS layer to read/write
|
||||
* Subscriber authentication security key
|
||||
*/
|
||||
#define USIM_API_K_SIZE 16
|
||||
#define USIM_API_K_VALUE "fec86ba6eb707ed08905757b1bb44b8f"
|
||||
|
||||
/*
|
||||
* The name of the file where are stored data of the USIM application
|
||||
@@ -156,7 +155,6 @@ typedef struct {
|
||||
*/
|
||||
typedef struct {
|
||||
/* Length of all subsequent data */
|
||||
#define USIM_EPS_NAS_SECURITY_CONTEXT_TAG 0xA0U
|
||||
uint8_t length;
|
||||
/* Key set identifier KSI_ASME */
|
||||
#define USIM_KSI_ASME_TAG 0x80U
|
||||
|
||||
@@ -44,19 +44,6 @@ Description Defines the EPS Mobility Management procedures executed at
|
||||
|
||||
#include "emmData.h"
|
||||
#include "user_defs.h"
|
||||
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/**************** E X T E R N A L D E F I N I T I O N S ****************/
|
||||
/****************************************************************************/
|
||||
|
||||
#define EMM_FSM_NB_UE_MAX 1
|
||||
|
||||
/****************************************************************************/
|
||||
/******************* L O C A L D E F I N I T I O N S *******************/
|
||||
/****************************************************************************/
|
||||
|
||||
/*
|
||||
* -----------------------------------------------------------------------------
|
||||
* Data used for trace logging
|
||||
|
||||
@@ -123,7 +123,6 @@ typedef enum {
|
||||
#define EMMREG_PRIMITIVE_MIN _EMMREG_START
|
||||
#define EMMESM_PRIMITIVE_MIN _EMMESM_START
|
||||
#define EMMAS_PRIMITIVE_MIN _EMMAS_START
|
||||
#define EMMCN_PRIMITIVE_MIN _EMMCN_START
|
||||
|
||||
/*
|
||||
* Maximal identifier for EMM-SAP primitives
|
||||
@@ -131,7 +130,6 @@ typedef enum {
|
||||
#define EMMREG_PRIMITIVE_MAX _EMMREG_END
|
||||
#define EMMESM_PRIMITIVE_MAX _EMMESM_END
|
||||
#define EMMAS_PRIMITIVE_MAX _EMMAS_END
|
||||
#define EMMCN_PRIMITIVE_MAX _EMMCN_END
|
||||
|
||||
/****************************************************************************/
|
||||
/************************ G L O B A L T Y P E S ************************/
|
||||
|
||||
@@ -46,8 +46,6 @@
|
||||
# error "You are compiling ngap with the wrong version of ASN1C"
|
||||
#endif
|
||||
|
||||
#define NGAP_UE_ID_FMT "0x%06"PRIX32
|
||||
|
||||
# include "common/utils/LOG/log.h"
|
||||
# include "ngap_gNB_default_values.h"
|
||||
# define NGAP_ERROR(x, args...) LOG_E(NGAP, x, ##args)
|
||||
|
||||
@@ -50,8 +50,6 @@
|
||||
# error "You are compiling s1ap with the wrong version of ASN1C"
|
||||
#endif
|
||||
|
||||
#define S1AP_UE_ID_FMT "0x%06"PRIX32
|
||||
|
||||
#include "common/utils/LOG/log.h"
|
||||
#include "s1ap_eNB_default_values.h"
|
||||
#define S1AP_ERROR(x, args...) LOG_E(S1AP, x, ##args)
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
#include "assertions.h"
|
||||
#include "conversions.h"
|
||||
|
||||
#define SECU_DEBUG
|
||||
|
||||
/*!
|
||||
* @brief Create integrity cmac t for a given message.
|
||||
* @param[in] stream_cipher Structure containing various variables to setup encoding
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <openair3/NAS/COMMON/milenage.h>
|
||||
extern uint16_t NB_UE_INST;
|
||||
|
||||
#define UICC_SECTION "uicc"
|
||||
#define IMEISV_STR_MAX_LENGTH 16
|
||||
#define UICC_CONFIG_HELP_OPTIONS " list of comma separated options to interface a simulated (real UICC to be developped). Available options: \n"\
|
||||
" imsi: user imsi\n"\
|
||||
|
||||
@@ -561,6 +561,5 @@ do { \
|
||||
|
||||
#define TAC_TO_ASN1 INT16_TO_OCTET_STRING
|
||||
#define GTP_TEID_TO_ASN1 INT32_TO_OCTET_STRING
|
||||
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16
|
||||
|
||||
#endif /* CONVERSIONS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user