mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
use smaller mtu for meshnet mode
This commit is contained in:
parent
32644ddada
commit
1ebcbd5b0e
@ -18,7 +18,11 @@ namespace transport
|
|||||||
{
|
{
|
||||||
|
|
||||||
const size_t SSU_MTU_V4 = 1484;
|
const size_t SSU_MTU_V4 = 1484;
|
||||||
|
#ifdef MESHNET
|
||||||
|
const size_t SSU_MTU_V6 = 1304;
|
||||||
|
#else
|
||||||
const size_t SSU_MTU_V6 = 1472;
|
const size_t SSU_MTU_V6 = 1472;
|
||||||
|
#endif
|
||||||
const size_t IPV4_HEADER_SIZE = 20;
|
const size_t IPV4_HEADER_SIZE = 20;
|
||||||
const size_t IPV6_HEADER_SIZE = 40;
|
const size_t IPV6_HEADER_SIZE = 40;
|
||||||
const size_t UDP_HEADER_SIZE = 8;
|
const size_t UDP_HEADER_SIZE = 8;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user