- 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
This commit is contained in:
Cedric Roux
2013-09-12 09:10:30 +00:00
parent 2f889b422b
commit f66750b195
+8 -1
View File
@@ -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