From: Etienne Dechamps Date: Thu, 1 Jan 2015 10:32:14 +0000 (+0000) Subject: Fix MTU as soon as possible. X-Git-Tag: release-1.1pre12~239 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=df6f67895723dd0c4226fa0f94257245a81a273f;hp=df6f67895723dd0c4226fa0f94257245a81a273f;p=tinc Fix MTU as soon as possible. If a probe reply is received that makes minmtu equal to maxmtu, we have to wait until try_mtu() runs to realize that. Since try_mtu() runs after a packet is sent, this means there is at least one packet (possibly more, depending on timing) that won't benefit from the fixed MTU. This also happens when maxmtu is updated from the send() path. This commit fixes that by making sure we check whether the MTU can be fixed every time minmtu or maxmtu is touched. ---