Merge remote-tracking branch 'origin/nr-cleanup-includes' into integration_2024_w47 (!2966)
Refactor of includes in gNB/UE for improved header management This merge request implements changes suggested by the Include What You Use (IWYU) open source tool to streamline the project’s header file usage. The adjustments ensure that each file includes only the necessary headers for the symbols it uses, making the code more efficient and maintainable. Unnecessary includes have been removed, and missing headers have been added where required. This improves modularity and reduces inter-dependencies between files, helping to avoid future build issues caused by unused or missing includes. Each output has been manually reviewed. Followed a similar approach as in !2953 (merged). Affected folders/files: - NR_MAC_gNB/main.c - nr-softmodem.c - unitary simulators: nr_dlsim, nr_ulsim, prachsim - openair2/RRC/NR - openair3/NGAP - openair2/LAYER2/nr_pdcp - openair2/SDAP/nr_sdap
This commit is contained in:
@@ -193,6 +193,20 @@ typedef struct nsa_msg_t {
|
||||
uint8_t msg_buffer[MAX_MESSAGE_SIZE];
|
||||
} nsa_msg_t;
|
||||
|
||||
typedef struct transport_layer_addr_s {
|
||||
/**
|
||||
* Transport Layer Address as a bitstring:
|
||||
* - 32 bits for IPv4 (RFC 791),
|
||||
* - 128 bits for IPv6 (RFC 2460),
|
||||
* - 160 bits for both IPv4 and IPv6, with IPv4 in the first 32 bits.
|
||||
* The S1AP/NGAP layer forwards this address (bitstring<1..160>)
|
||||
* to S1-U/NG-U without interpreting it.
|
||||
*/
|
||||
uint8_t length;
|
||||
/// Buffer: address in network byte order
|
||||
uint8_t buffer[20];
|
||||
} transport_layer_addr_t;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// GTPV1U TYPES
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user