mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Use a smaller MTU, which should not impact throughput since 2800+overhead/2 still fits in two of these.
This commit is contained in:
parent
270debb3fc
commit
6fbf21b4f0
1 changed files with 4 additions and 3 deletions
|
@ -102,10 +102,11 @@ extern "C" {
|
||||||
/**
|
/**
|
||||||
* Default UDP payload size (physical path MTU) not including UDP and IP overhead
|
* Default UDP payload size (physical path MTU) not including UDP and IP overhead
|
||||||
*
|
*
|
||||||
* This is 1500 - IPv6 UDP overhead - PPPoE overhead and is safe for 99.9% of
|
* This is small enough for PPPoE and for Google Cloud's bizarrely tiny MTUs.
|
||||||
* all Internet links.
|
* A 2800 byte payload still fits into two packets, so this should not impact
|
||||||
|
* real world throughput at all vs the previous default of 1444.
|
||||||
*/
|
*/
|
||||||
#define ZT_DEFAULT_PHYSMTU 1444
|
#define ZT_DEFAULT_PHYSMTU 1432
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum physical UDP payload
|
* Maximum physical UDP payload
|
||||||
|
|
Loading…
Add table
Reference in a new issue