Be a bit more optimistic when setting mtus
authorSeewer Philippe <philippe.seewer@bfh.ch>
Tue, 6 Oct 2009 13:09:34 +0000 (15:09 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 6 Oct 2009 13:09:34 +0000 (15:09 +0200)
commitd1dd6bb746a0aad19549b4fc364e4106b688de72
tree354a179d9317144d3ad2a9f31c5bd8f27cd18228
parentbf87d252f3780de0fd77de39c57e66a48f663b91
Be a bit more optimistic when setting mtus

The usual approach to setting mtus is to set the interface down,
set the mtu then set the interface back up again. Modern hardware
and/or drivers may support setting this on the fly, so we try
this and fall back to the old behaviour it it doesn't work.

In addition this patch only allows mtus greater than 576, this is
taken from debian/ubuntu dhclient-script.
modules.d/40network/dhclient-script