]> Cypherpunks.ru repositories - govpn.git/commitdiff
Increase default MTU value
authorSergey Matveev <stargrave@stargrave.org>
Tue, 16 Feb 2016 08:36:03 +0000 (11:36 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 16 Feb 2016 08:36:03 +0000 (11:36 +0300)
It is convenient to be able to use common 1500 MTU TAP interfaces out of
box. They have 1500 bytes MTU + 14 bytes Ethernet header overhead. But
also we have got single padding byte.

Reported-by: alxkor <alxkor@protonmail.ch>
src/cypherpunks.ru/govpn/common.go

index d3f8ec04a595ad62cf960ccfd1ca70310411212f..dc7fbe0a08f059ddd80f0baa4ad5a8727df60ac2 100644 (file)
@@ -28,8 +28,8 @@ import (
 const (
        TimeoutDefault = 60
        EtherSize      = 14
-       MTUMax         = 9000 + EtherSize
-       MTUDefault     = 1500 + EtherSize
+       MTUMax         = 9000 + EtherSize + 1
+       MTUDefault     = 1500 + EtherSize + 1
 )
 
 var (