From afc8c7e39cef5ba1460adeb70ee01fb9383f4ac3 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 16 Feb 2016 11:36:03 +0300 Subject: [PATCH] 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 --- src/cypherpunks.ru/govpn/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ( -- 2.44.0