From 93936ffd9b189d973d5c3caf35d1e0237bbe5f6f Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Tue, 13 May 2025 21:31:43 +0200 Subject: [PATCH] Fix comment in transport_layer_addr_t --- common/platform_types.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/common/platform_types.h b/common/platform_types.h index db692902df..8a8868226a 100644 --- a/common/platform_types.h +++ b/common/platform_types.h @@ -208,14 +208,9 @@ typedef struct nsa_msg_t { } 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. - */ + /** Transport Layer Address in bytes: + * - 4 bytes for IPv4 (RFC 791), 16 bytes for IPv6 (RFC 2460), + * - 20 bytes for both IPv4 and IPv6, with IPv4 in the first 4 bytes. */ uint8_t length; /// Buffer: address in network byte order uint8_t buffer[20];