Commit f66750b1 authored by Cedric Roux's avatar Cedric Roux

- 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
parent 2f889b42
...@@ -31,7 +31,14 @@ ...@@ -31,7 +31,14 @@
#ifdef JUMBO_FRAME #ifdef JUMBO_FRAME
# define MAX_IP_PACKET_SIZE 9000 # define MAX_IP_PACKET_SIZE 9000
#else #else
# 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 # define MAX_IP_PACKET_SIZE 1500
# endif
#endif #endif
// overwrite the previous deinitions // overwrite the previous deinitions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment