- 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.
73 lines
1.9 KiB
C
73 lines
1.9 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
#ifndef SCTP_ENB_DEFS_H_
|
|
#define SCTP_ENB_DEFS_H_
|
|
|
|
#include "queue.h"
|
|
#include <netinet/in.h>
|
|
#include <netinet/sctp.h>
|
|
|
|
typedef struct sctp_queue_item_s {
|
|
/* Pair of stream on which we received this packet */
|
|
uint16_t local_stream;
|
|
|
|
/* Remote port */
|
|
uint16_t remote_port;
|
|
/* Remote address */
|
|
uint32_t remote_addr;
|
|
sctp_assoc_t assoc_id;
|
|
|
|
/* PPID used for the packet */
|
|
uint32_t ppid;
|
|
|
|
/* Buffer and buffer length for the packet */
|
|
uint32_t length;
|
|
uint8_t *buffer;
|
|
|
|
/* queue.h internal data */
|
|
TAILQ_ENTRY(sctp_queue_item_s) entry;
|
|
} sctp_queue_item_t;
|
|
|
|
typedef struct {
|
|
/* Socket descriptor used to send/recv data on SCTP */
|
|
int sd;
|
|
|
|
/* Unique SCTP association ID (Local to host), used to distinguish
|
|
* associations between MME and eNB.
|
|
*/
|
|
sctp_assoc_t assoc_id;
|
|
|
|
/* Current remote port used for transmission */
|
|
uint16_t remote_port;
|
|
/* Remote IP addresses */
|
|
struct sockaddr *remote_ip_addresses;
|
|
int nb_remote_addresses;
|
|
|
|
/* Local port to use for transmission (dynamically allocated) */
|
|
uint16_t local_port;
|
|
/* Local IP address to use for transmission */
|
|
struct sockaddr *local_ip_addr;
|
|
int nb_local_addresses;
|
|
|
|
/* Number of input/output streams used over this association.
|
|
* The number is negotiated between peers at connect and the minimum value
|
|
* of both peers is used over the association.
|
|
*/
|
|
uint16_t instreams;
|
|
uint16_t outstreams;
|
|
|
|
/* Queue of messages received on SCTP. Messages will be processed later by
|
|
* upper layer. This will allow data prioritization and data de-fragmentation
|
|
* (if any on interface).
|
|
*/
|
|
TAILQ_HEAD(sctp_queue_s, sctp_queue_item_s) sctp_queue;
|
|
/* Queue size in bytes (may be used to limit eNB processing) */
|
|
uint32_t queue_size;
|
|
/* Number of items in the queue */
|
|
uint32_t queue_length;
|
|
} sctp_data_t;
|
|
|
|
#endif /* SCTP_ENB_DEFS_H_ */
|