Refactor f1u_tunnel_t into gtpu_tunnel_t

This struct is used in different layers, e.g. RRC, NGAP: therefore it
has been moved to platform_types.h.

Also, the struct holds the tunnel endpoint configuration for any GTP-U
tunnel, therefore the f1u prefix is not accurate and was updated
to a more generic gtpu.
This commit is contained in:
Guido Casati
2025-06-18 10:52:15 +02:00
parent 93936ffd9b
commit 32e5f972e9
3 changed files with 12 additions and 14 deletions
+8
View File
@@ -216,6 +216,14 @@ typedef struct transport_layer_addr_s {
uint8_t buffer[20];
} transport_layer_addr_t;
/** @brief GTP tunnel configuration */
typedef struct {
// Tunnel endpoint identifier
uint32_t teid;
// Transport layer address
transport_layer_addr_t addr;
} gtpu_tunnel_t;
//-----------------------------------------------------------------------------
// GTPV1U TYPES
//-----------------------------------------------------------------------------