First pass of configurable MTU and max MTU increase.

This commit is contained in:
Adam Ierymenko 2017-05-04 17:12:02 -07:00
parent 6ef247fb93
commit 107e3e4106
6 changed files with 22 additions and 29 deletions

View file

@ -159,15 +159,12 @@
/**
* Default MTU used for Ethernet tap device
*/
#define ZT_IF_MTU ZT_MAX_MTU
#define ZT_DEFAULT_MTU 2800
/**
* Maximum number of packet fragments we'll support
*
* The actual spec allows 16, but this is the most we'll support right
* now. Packets with more than this many fragments are dropped.
* Maximum number of packet fragments we'll support (protocol max: 16)
*/
#define ZT_MAX_PACKET_FRAGMENTS 4
#define ZT_MAX_PACKET_FRAGMENTS 7
/**
* Size of RX queue