- 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.
45 lines
2.5 KiB
C
45 lines
2.5 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
#ifndef XNAP_COMMON_H_
|
|
#define XNAP_COMMON_H_
|
|
|
|
#include "XNAP_XnAP-PDU.h"
|
|
#include "common/openairinterface5g_limits.h"
|
|
#include "oai_asn1.h"
|
|
#include "XNAP_ProtocolIE-Field.h"
|
|
#include "XNAP_InitiatingMessage.h"
|
|
#include "XNAP_ProtocolIE-ContainerPair.h"
|
|
#include "XNAP_ProtocolExtensionField.h"
|
|
#include "XNAP_ProtocolExtensionContainer.h"
|
|
#include "XNAP_asn_constant.h"
|
|
|
|
#ifndef XNAP_PORT
|
|
#define XNAP_PORT 38422
|
|
#endif
|
|
|
|
#define XNAP_FIND_PROTOCOLIE_BY_ID(IE_TYPE, ie, container, IE_ID, mandatory) \
|
|
do { \
|
|
IE_TYPE **ptr; \
|
|
ie = NULL; \
|
|
for (ptr = container->protocolIEs.list.array; ptr < &container->protocolIEs.list.array[container->protocolIEs.list.count]; \
|
|
ptr++) { \
|
|
if ((*ptr)->id == IE_ID) { \
|
|
ie = *ptr; \
|
|
break; \
|
|
} \
|
|
} \
|
|
if (mandatory) \
|
|
DevAssert(ie != NULL); \
|
|
} while (0)
|
|
|
|
ssize_t xnap_generate_initiating_message(uint8_t **buffer,
|
|
uint32_t *length,
|
|
XNAP_ProcedureCode_t procedureCode,
|
|
XNAP_Criticality_t criticality,
|
|
asn_TYPE_descriptor_t *td,
|
|
void *sptr);
|
|
|
|
#endif /* XNAP_COMMON_H_ */
|