From: Sergey Matveev Date: Tue, 16 Feb 2016 08:36:03 +0000 (+0300) Subject: Increase default MTU value X-Git-Tag: 5.7^2~6 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=afc8c7e39cef5ba1460adeb70ee01fb9383f4ac3 Increase default MTU value 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 --- diff --git a/src/cypherpunks.ru/govpn/common.go b/src/cypherpunks.ru/govpn/common.go index d3f8ec0..dc7fbe0 100644 --- a/src/cypherpunks.ru/govpn/common.go +++ b/src/cypherpunks.ru/govpn/common.go @@ -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 (