From 52ce4df18e84dc9a6d1c80a084870630be22afe7 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 25 Jan 2016 10:53:10 +0000 Subject: [PATCH] Increase the lowest possible good PMTU The current minimum PMTU we can detect is eight bytes, which, being lower than the minimum IPv4 MTU of 68 bytes, can cause an exception in the sleeve packet fragmentation implementation. We increase that minimum to 552, the lowest PMTU value that Linux will cache. --- router/sleeve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/sleeve.go b/router/sleeve.go index 0be92572..1b4e2078 100644 --- a/router/sleeve.go +++ b/router/sleeve.go @@ -917,7 +917,7 @@ func (fwd *sleeveForwarder) processSendError(err error) error { return nil } - fwd.mtuHighestGood = 8 + fwd.mtuHighestGood = 552 fwd.mtuLowestBad = mtu + 1 fwd.mtuCandidate = mtu fwd.mtuTestsSent = 0