ip4: Add IP4_MIN_MTU_LENGTH definition

See patch #10270

Signed-off-by: Samuel Martin <samuel.martin@netatmo.com>
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Samuel Martin
2022-06-30 16:36:57 +02:00
committed by Simon Goldschmidt
parent afb07bb12f
commit ad897db7ea

View File

@@ -68,6 +68,9 @@ typedef struct ip4_addr_packed ip4_addr_p_t;
/* Minimal fragment size in bytes (c.f. RFC 791) */
#define IP_MIN_FRAG_LENGTH 8U
/* Minimal IPv4 MTU (c.f. RFC 791) */
#define IP4_MIN_MTU_LENGTH (IP_HLEN_MAX + IP_MIN_FRAG_LENGTH)
#ifdef PACK_STRUCT_USE_INCLUDES
# include "arch/bpstruct.h"
#endif