diff --git a/openair2/COMMON/platform_constants.h b/openair2/COMMON/platform_constants.h index d444719e9e4152cc9ab5083c521705255188cc18..73556d25bd770dd95faf6ec89be913cfde33db17 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