From 5ba72df5aae51a35bd2bb74384851ccd9cfcd855 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 4 Feb 2019 12:38:25 +0100 Subject: [PATCH] net: NETOPT_MAX_{PACKET_SIZE -> PDU_SIZE} Renamed NETOPT_MAX_PACKET_SIZE into NETOPT_MAX_PDU_SIZE and updated the documentation. NETOPT_MAX_PACKET_SIZE is introduced as preprocessor alias for NETOPT_MAX_PDU_SIZE to remain backward compatible and is marked as deprecated. --- sys/include/net/netopt.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/include/net/netopt.h b/sys/include/net/netopt.h index d5fb9273c1..09531f1f5a 100644 --- a/sys/include/net/netopt.h +++ b/sys/include/net/netopt.h @@ -29,6 +29,14 @@ extern "C" { #endif +/** + * @brief A deprecated alias for @ref NETOPT_MAX_PDU_SIZE + * + * @deprecated Please use @ref NETOPT_MAX_PDU_SIZE instead of + * `NETOPT_MAX_PACKET_SIZE` + */ +#define NETOPT_MAX_PACKET_SIZE NETOPT_MAX_PDU_SIZE + /** * @brief Global list of configuration options available throughout the * network stack, e.g. by netdev and netapi @@ -171,9 +179,9 @@ typedef enum { */ NETOPT_TX_POWER, /** - * @brief (uint16_t) maximum packet size a network module can handle + * @brief (uint16_t) maximum protocol data unit */ - NETOPT_MAX_PACKET_SIZE, + NETOPT_MAX_PDU_SIZE, /** * @brief (@ref netopt_enable_t) frame preloading *