Commit Graph
55 Commits
Author SHA1 Message Date
francescomani 2483b68ee4 add flag for unused function arguments in NAS CMakeLists 2026-03-27 18:03:11 +01:00
Robert Schmidt 8107939f08 Change OAI license to CSSL v1.0 (and others)
- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
  scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly

For automated changes based on OAI PL v1.1:

    perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
    perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
    perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml

The rest (cmake, files with missing license, cmake) manually.
2026-03-27 16:36:37 +01:00
Laurent THOMAS 5b0d34c3ad semi-manual remove of not used #define commands. I let the unused defintions that come from standard bodies 2026-01-27 13:23:10 +01:00
Robert Schmidt 252c9db246 Correctly express dependency on LOG headers
Various libraries in this commit use the log headers (that is the
direct dependency). The log headers in turn include the T headers
(transitive dependency). Building on gracehopper with its many cores
triggers the build of these libraries before T headers have been
generated.

To resolve this and force the generation of T headers before building
the libraries, correctly express their dependency on the log headers,
which in turn ensures that T headers have been generated.

Depending on log_headers is preferrable because it is really the headers
that we depend on. Using instead e.g., utils, would trigger build of
source files, that we don't need for these libraries.  This commit is
part of a larger cleanup that I have that is not merged yet. Follow-up
work will generalize this in the repo, and ensure that every(!) library
builds.

We have to add CONFIG_LIB, as the log module has a direct dependency
onto the configuration module (it uses it). I am not sure why this was
not relevant before.
2025-03-18 09:21:24 +01:00
Guido Casati 9719f5e574 Add const attribute to NAS enc/dec functions 2025-01-30 15:21:39 +01:00
Guido Casati 2d75598851 Initial separation of enc/dec functions from handlers/callbacks
* move enc/dec definitions to NR_NAS_defs.h and add new lib file nr_fgs_nas_lib.c
  both used by nr_nas_msg.c
* move utility macros to fgs_nas_utils.h: this can be used in all the 5GMM, 5GSM lib files
* use nr_nas_msg.c for handlers/callbacks only, it should call the enc/dec
  functions in nr_fgs_nas_lib and in the 5GMM, 5GSM libs
* 5GMM, 5GSM libs should only do the enc/dec of the NAS message contents
2025-01-30 15:21:39 +01:00
Guido Casati c0583be24e Migrated NAS 5GS (5GMM & 5GSM) to NR folders and refactor CMakeLists.txt files
This commit is introducing the following macro changes:

(1) Migrate NAS 5GS lib files to a new 5GS subfolder in NR_UE
    and organize NAS 5GS lib messages into 5GMM and 5GSM subfolders.
    A nested CMake structure was implemented and CMakeLists.txt were
    added whenever necessary. This is effectively separating 5GS
    libraries from LTE libraries.

(2) In order to simplify the separation of 5GS libs from LTE libs,
    remaining dependencies from NAS LTE (e.g. nas_ue_task.c, ue-idx-standalone)
    were removed in the process

(3) ExtendedProtocolDiscriminator.c/.h and SpareHalfOctet.c/.h were deleted
    and affected types were replaced with simple integer types

(4) Cleanup: unused definitions and libs (e.g. LIB_5GNAS_GNB)
    were removed

(5) Update doc/Doxyfile

(6) clang-formatted the migrated files in the process

(7) Update includes of headers in affected files
2025-01-30 15:17:30 +01:00
Guido Casati 44c9dec681 Add test for NAS Service Request enc/dec 2024-11-25 13:15:10 +01:00
Guido Casati 1c4e1029a8 Add NAS Service Request enc/dec functions
* FGMM enc/dec library files
* Plain message encoding + logic for security protected message
* added fill_fgstmsi function
* add checks on length in 5G-S-TMSI encoder function
* encoding of NAS Service Request and relevant mandatory IEs
2024-11-25 13:15:10 +01:00
Guido Casati c817c44ae9 Add include for stdbool.h in FGSMobileIdentity.c 2024-11-25 13:15:10 +01:00
Guido Casati 29220a60dc Add check on minimum length in encode_5gs_mobile_identity 2024-11-25 13:15:10 +01:00
Guido Casati bf7761131d Refactor NAS Key Set Identifier enc/dec functions
* simplified the code while keeping same functionality
* reduced the number of functions (from 4 to 2)
* clang-formatted
2024-11-25 13:15:10 +01:00
francescomani 3156a9df06 function to handle NAS registraction accept 2023-12-22 14:48:01 +01:00
Vijay Chadachan 836469e849 CPPCHECK fixes for printf issues
Fix for following CPPCheck warnings
- invalidPrintfArgType
Rebased with latest develop branch w21.
Reverted modifications unrelated to printf issues.
2023-06-01 12:07:26 +02:00
laurent b735f8bec6 ubsan fixes 2023-04-19 22:12:08 +02:00
francescomani e49c6db2bf final round of warning fixes to compile nr softmodems 2023-04-07 15:52:16 +02:00
Robert Schmidt a0318fb413 Implement NAS Deregistration Type message 2023-03-28 14:12:05 +02:00
Robert Schmidt 528025e9a6 Fix decoding of Mobile identity 2023-03-28 14:12:05 +02:00
Dorovskikh eca08df857 5G UE IMEISV 16 digits
reading 5G UE IMEISV from config file

Signed-off-by: Dorovskikh <vladimir.dorovskikh@capgemini.com>
2023-02-09 16:09:50 +00:00
Cedric Roux 92c5115f13 lte: fixes in EpsNetworkFeatureSupport.c
We have to eat all the bytes, not only one.
We have to get the bit we want from the right buffer position.

Note: only one bit is supported from this "EPS network feature support",
not sure how to properly deal with it, so let's keep the code as it is.

This commit was made because the MAGMA MME sends "EPS network feature
support" to the UE in the NAS message "Attach Accept". OAI MME does not
send this. So the bug about size was not seen.
2022-02-04 16:32:49 +01:00
rmagueta 160cb0b930 Merge remote-tracking branch 'origin/NR_SA_F1AP_5GRECORDS' into develop-NR_SA_F1AP_5GRECORDS-lts2
# Conflicts:
#	cmake_targets/CMakeLists.txt
#	cmake_targets/build_oai
#	cmake_targets/tools/build_helper
#	executables/nr-gnb.c
#	openair1/PHY/INIT/nr_init_ru.c
#	openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
#	openair1/PHY/NR_TRANSPORT/nr_ulsch.c
#	openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
#	openair1/PHY/NR_UE_TRANSPORT/nr_prach.c
#	openair1/SCHED_NR/phy_procedures_nr_gNB.c
#	openair1/SCHED_NR_UE/pucch_uci_ue_nr.c
#	openair2/F1AP/f1ap_du_rrc_message_transfer.c
#	openair2/F1AP/f1ap_du_rrc_message_transfer.h
#	openair2/F1AP/f1ap_du_task.c
#	openair2/GNB_APP/gnb_app.c
#	openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
#	openair2/LAYER2/NR_MAC_gNB/config.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
#	openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
#	openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
#	openair2/RRC/LTE/rrc_eNB_GTPV1U.c
#	openair2/RRC/NR/L2_nr_interface.c
#	openair2/RRC/NR/MESSAGES/asn1_msg.c
#	openair2/RRC/NR/rrc_gNB.c
#	openair2/RRC/NR/rrc_gNB_NGAP.c
#	openair2/RRC/NR_UE/rrc_UE.c
#	openair3/NAS/NR_UE/nr_nas_msg_sim.c
#	openair3/ocp-gtpu/gtp_itf.cpp
#	targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
2021-06-30 17:00:30 +01:00
Laurent THOMAS 1b62c91532 add configurable USIM 2021-06-14 16:32:29 +02:00
Raymond Knopp 94085a41cd Merge remote-tracking branch 'origin/develop' into oairu 2021-03-16 08:07:16 +01:00
masayuki.harada ff994453a4 Merge remote-tracking branch 'remotes/oai/develop' into HEAD
# Conflicts:
#	openair3/S1AP/s1ap_eNB.c
#	openair3/S1AP/s1ap_eNB_handlers.c
2021-03-08 14:51:11 +09:00
Raymond Knopp 846c67b9bd Merge remote-tracking branch 'origin/develop' into oairu
Conflicts:
	openair2/LAYER2/NR_MAC_COMMON/nr_mac.h
2021-02-07 18:23:46 +01:00
Xue Song a85f261b54 add license text
fix some problems
2021-02-01 13:59:56 +09:00
Raymond Knopp 9f52fd4ae7 removed warnings on lte-softmodem compilation 2021-01-25 10:02:15 +01:00
He Shanyun 63a5c693b4 modify decode error about supportedCodecList in NAS message 2021-01-06 19:08:41 +09:00
Raymond Knopp 7cbf24d36c updates for tracing 2021-01-03 12:28:24 +01:00
wu.jing c994c2ad8f Merge branch 'develop_SA_SIM' into develop_SA_L3
Conflicts:
	common/utils/ocp_itti/intertask_interface.h
	openair2/COMMON/gtpv1_u_messages_types.h
	openair2/GNB_APP/gnb_config.c
	openair2/RRC/NR/MESSAGES/asn1_msg.c
	openair2/RRC/NR/nr_rrc_proto.h
	openair2/RRC/NR/rrc_gNB.c
	openair2/RRC/NR/rrc_gNB_NGAP.c
	openair2/RRC/NR_UE/rrc_UE.c
	openair3/NAS/NR_UE/nr_nas_msg_sim.h
	openair3/NGAP/ngap_gNB_nas_procedures.c
2020-11-24 09:15:52 +00:00
wu.jing d987c0919f Merge branch 'master' into develop_SA_L3 2020-11-24 04:57:19 +00:00
yincong c208bffa3a add OAI license 2020-11-13 16:11:41 +08:00
zhenghuangkun@cn.fujitsu.com f64bba177a Modify SA source code 2020-11-13 07:37:22 +00:00
zhenghuangkun 0e2e5f4c7e add nas message for registration complete 2020-11-06 05:30:11 +00:00
Xue Song 7bef73bfa8 set nas message container for security mode complete 2020-11-05 07:57:05 +00:00
Xue Song 89eae04132 Add NAS Security Mode Complete 2020-11-03 09:58:23 +00:00
He Shanyun 63795a6c94 implement identityresponse 2020-10-30 08:34:52 +00:00
zhenghuangkun 881a6d4afc add nas message for registration complete 2020-10-29 05:43:59 +00:00
He Shanyun f2bb26a91b add decode and encode for registration accept 2020-10-28 05:59:58 +00:00
He Shanyun 90a10cd051 set amf setid and regionid for registration request 2020-10-27 11:06:23 +00:00
He Shanyun 5880c1f8c7 add nas message for registration request 2020-10-27 09:28:47 +00:00
He Shanyun e15f0b2813 add struct for registration request message 2020-10-20 11:30:06 +00:00
bruno mongazon b016bc229a fixed #320 issue 2018-06-25 18:23:36 +02:00
Cedric Roux 1b1f941e3c upgrade license to version 1.1 2017-10-23 12:22:13 +02:00
hbilel 35ae311ac8 Merge branch 'develop1B' of https://gitlab.eurecom.fr/oai1B/openairinterface5g into bugfix-44 2016-12-13 12:27:41 +01:00
Cedric Roux 0a9d013f59 integration fix: LOG_I/LOG_D do not exist when compiling at_nas_ue
Use LOG_TRACE instead.
2016-12-09 17:47:49 +01:00
Cedric Roux 46b2ee9577 integration fix: attempt to clarify ODD_PARITY
This may need to be refined.

The variable ODD_PARITY is defined at various places,
with different values, causing compilation warnings.

It's wrong to define a variable with different values.

A new variable is created, specific to IMEI case: IMEI_ODD_PARITY.
Maybe ODD_PARITY should also have 0xf as value, and so maybe only
one variable is necessary. To be checked at some point...
2016-12-08 17:51:02 +01:00
gabrielC bd30471076 [OAI-UE] merge com4Innov branch to integration branch 2016-12-08 11:07:38 +01:00
Wilson W.K. Thong 488b84cb46 fixing thread busy crash: disabled timing consuming NAS logs
see issue #44
2016-12-07 10:39:57 +08:00
Cedric Roux 74316f6b69 remove COPYING files
Most of them were the GPL.

It is useless to have a copy of the license in every
sub-directory.

From now on, there is only the LICENSE in the top
directory of the distribution.

	deleted:    common/utils/COPYING
	deleted:    common/utils/hashtable/COPYING
	deleted:    common/utils/itti/COPYING
	deleted:    common/utils/itti_analyzer/COPYING
	deleted:    common/utils/itti_analyzer/common/COPYING
	deleted:    common/utils/itti_analyzer/libbuffers/COPYING
	deleted:    common/utils/itti_analyzer/libparser/COPYING
	deleted:    common/utils/itti_analyzer/libresolver/COPYING
	deleted:    common/utils/itti_analyzer/libui/COPYING
	deleted:    openair1/COPYING
	deleted:    openair1/PHY/CODING/COPYING
	deleted:    openair1/PHY/CODING/TESTBENCH/COPYING
	deleted:    openair1/PHY/COPYING
	deleted:    openair1/PHY/INIT/COPYING
	deleted:    openair1/PHY/LTE_ESTIMATION/COPYING
	deleted:    openair1/PHY/LTE_REFSIG/COPYING
	deleted:    openair1/PHY/LTE_TRANSPORT/COPYING
	deleted:    openair1/PHY/MODULATION/COPYING
	deleted:    openair1/PHY/TOOLS/COPYING
	deleted:    openair1/SCHED/COPYING
	deleted:    openair1/SIMULATION/COPYING
	deleted:    openair1/SIMULATION/ETH_TRANSPORT/COPYING
	deleted:    openair1/SIMULATION/LTE_PHY/COPYING
	deleted:    openair1/SIMULATION/RF/COPYING
	deleted:    openair1/SIMULATION/TOOLS/COPYING
	deleted:    openair2/COMMON/COPYING
	deleted:    openair2/DOCS/TEMPLATES/CODE/COPYING
	deleted:    openair2/LAYER2/COPYING
	deleted:    openair2/LAYER2/MAC/COPYING
	deleted:    openair2/LAYER2/PDCP_v10.1.0/COPYING
	deleted:    openair2/LAYER2/RLC/AM_v9.3.0/COPYING
	deleted:    openair2/LAYER2/RLC/COPYING
	deleted:    openair2/LAYER2/RLC/TM_v9.3.0/COPYING
	deleted:    openair2/LAYER2/RLC/UM_v9.3.0/COPYING
	deleted:    openair2/NETWORK_DRIVER/LITE/COPYING
	deleted:    openair2/NETWORK_DRIVER/MESH/COPYING
	deleted:    openair2/NETWORK_DRIVER/UE_IP/COPYING
	deleted:    openair2/PHY_INTERFACE/COPYING
	deleted:    openair2/RRC/L2_INTERFACE/COPYING
	deleted:    openair2/RRC/LITE/COPYING
	deleted:    openair2/RRC/LITE/MESSAGES/COPYING
	deleted:    openair2/RRC/NAS/COPYING
	deleted:    openair2/RRM_4_RRC_LITE/COPYING
	deleted:    openair2/RRM_4_RRC_LITE/src/COPYING
	deleted:    openair2/RRM_4_RRC_LITE/src/radio_resources/COPYING
	deleted:    openair2/UTIL/BIGPHYS/COPYING
	deleted:    openair2/UTIL/CLI/COPYING
	deleted:    openair2/UTIL/FIFO/COPYING
	deleted:    openair2/UTIL/LISTS/COPYING
	deleted:    openair2/UTIL/LOG/COPYING
	deleted:    openair2/UTIL/MATH/COPYING
	deleted:    openair2/UTIL/MEM/COPYING
	deleted:    openair2/UTIL/OCG/COPYING
	deleted:    openair2/UTIL/OMG/COPYING
	deleted:    openair2/UTIL/OMV/COPYING
	deleted:    openair2/UTIL/OPT/COPYING
	deleted:    openair2/UTIL/OSA/COPYING
	deleted:    openair2/UTIL/OSD/COPYING
	deleted:    openair2/UTIL/OTG/COPYING
	deleted:    openair2/UTIL/SCTP/COPYING
	deleted:    openair2/UTIL/TIMER/COPYING
	deleted:    openair2/UTIL/TRACE/COPYING
	deleted:    openair2/X2AP/COPYING
	deleted:    openair3/COPYING
	deleted:    openair3/DOCS/COPYING
	deleted:    openair3/DOCS/DOXYGEN/COPYING
	deleted:    openair3/DOCS/Latex/COPYING
	deleted:    openair3/DOCS/Latex/DefaultBearer/COPYING
	deleted:    openair3/DOCS/Latex/EPC/COPYING
	deleted:    openair3/NAS/COMMON/API/NETWORK/COPYING
	deleted:    openair3/NAS/COMMON/COPYING
	deleted:    openair3/NAS/COMMON/EMM/MSG/COPYING
	deleted:    openair3/NAS/COMMON/ESM/MSG/COPYING
	deleted:    openair3/NAS/COMMON/IES/COPYING
	deleted:    openair3/NAS/COMMON/UTIL/COPYING
	deleted:    openair3/NAS/COPYING
	deleted:    openair3/NAS/TEST/AS_SIMULATOR/COPYING
	deleted:    openair3/NAS/TEST/COPYING
	deleted:    openair3/NAS/TEST/MSC/COPYING
	deleted:    openair3/NAS/TEST/NETWORK/COPYING
	deleted:    openair3/NAS/TEST/USER/COPYING
	deleted:    openair3/NAS/TOOLS/COPYING
	deleted:    openair3/NAS/UE/API/USER/COPYING
	deleted:    openair3/NAS/UE/API/USIM/COPYING
	deleted:    openair3/NAS/UE/EMM/SAP/COPYING
	deleted:    openair3/NAS/UE/ESM/SAP/COPYING
	deleted:    openair3/S1AP/COPYING
	deleted:    openair3/S1AP/MESSAGES/ASN1/COPYING
	deleted:    openair3/S1AP/MESSAGES/ASN1/R10.5/COPYING
	deleted:    openair3/S1AP/MESSAGES/ASN1/R8.10/COPYING
	deleted:    openair3/S1AP/MESSAGES/ASN1/R9.8/COPYING
	deleted:    openair3/S1AP/MESSAGES/COPYING
	deleted:    openair3/SCTP/COPYING
	deleted:    openair3/SECU/COPYING
	deleted:    openair3/TEST/COPYING
	deleted:    openair3/UTILS/COPYING
	deleted:    targets/ARCH/COMMON/COPYING
	deleted:    targets/ARCH/ETHERNET/USERSPACE/LIB/COPYING
	deleted:    targets/ARCH/EXMIMO/DEFS/COPYING
	deleted:    targets/ARCH/EXMIMO/DRIVER/eurecom/COPYING
	deleted:    targets/ARCH/EXMIMO/DRIVER/exmimo3/COPYING
	deleted:    targets/ARCH/EXMIMO/DRIVER/telecomparistech/COPYING
	deleted:    targets/ARCH/EXMIMO/USERSPACE/LIB/COPYING
	deleted:    targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/COPYING
	deleted:    targets/ARCH/EXMIMO/USERSPACE/OCTAVE/COPYING
	deleted:    targets/ARCH/USRP/USERSPACE/LIB/COPYING
	deleted:    targets/COMMON/COPYING
	deleted:    targets/COPYING
	deleted:    targets/PROJECTS/CENTOS-LTE-EPC-INTEGRATION/COPYING
	deleted:    targets/PROJECTS/COPYING
	deleted:    targets/PROJECTS/GENERIC-LTE-EPC/COPYING
	deleted:    targets/RT/USER/COPYING
	deleted:    targets/SIMU/PROC/COPYING
	deleted:    targets/SIMU/USER/COPYING
2016-09-28 10:45:02 +02:00