From: Roy Marples Date: Wed, 13 May 2009 18:49:49 +0000 (+0000) Subject: The smallest MTU we can work with is 576, so don't set less. X-Git-Tag: v5.0.4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2dab1db9d623f5c8455e6dd0441f6c0bc79fec8;p=thirdparty%2Fdhcpcd.git The smallest MTU we can work with is 576, so don't set less. --- diff --git a/dhcpcd-hooks/10-mtu b/dhcpcd-hooks/10-mtu index 167d6467..e4bb651c 100644 --- a/dhcpcd-hooks/10-mtu +++ b/dhcpcd-hooks/10-mtu @@ -1,5 +1,8 @@ # Configure the MTU for the interface if [ -n "$new_interface_mtu" ]; then - ifconfig "$interface" mtu "$new_interface_mtu" + # The smalled MTU dhcpcd can work with is 576 + if [ "$new_interface_mtu" -ge 576 ]; then + ifconfig "$interface" mtu "$new_interface_mtu" + fi fi