From f66750b1956561aa7d85bf9626a2b71270a2bbe5 Mon Sep 17 00:00:00 2001 From: Cedric Roux <cedric.roux@eurecom.fr> Date: Thu, 12 Sep 2013 09:10:30 +0000 Subject: [PATCH] - Fix IP packet size when using OAI_NW_DRIVER_TYPE_ETHERNET 1512 bytes = 1500 bytes IP packet + 12 bytes ethernet header git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4147 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair2/COMMON/platform_constants.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openair2/COMMON/platform_constants.h b/openair2/COMMON/platform_constants.h index d444719e9e..73556d25bd 100755 --- a/openair2/COMMON/platform_constants.h +++ b/openair2/COMMON/platform_constants.h @@ -31,7 +31,14 @@ #ifdef JUMBO_FRAME # define MAX_IP_PACKET_SIZE 9000 #else -# define MAX_IP_PACKET_SIZE 1500 +# if defined(OAI_NW_DRIVER_TYPE_ETHERNET) +/* SR: When using ethernet network driver the packet size is 1512 : + * 1500 bytes IP packet + 12 bytes ethernet header + */ +# define MAX_IP_PACKET_SIZE 1512 +# else +# define MAX_IP_PACKET_SIZE 1500 +# endif #endif // overwrite the previous deinitions -- GitLab