]> git.ipfire.org Git - people/ms/dhcpcd.git/commit
Allow free selection of MTU by the user bug-12536
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Feb 2022 12:07:15 +0000 (12:07 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Feb 2022 12:07:15 +0000 (12:07 +0000)
commit1acff721a3874a74efc9921a1e07bd48bd7efab0
tree9e7a715aa85c32453f3a9eb27c8547755128d5de
parent88d1590824689f47fc3e3ceff0bdaa7dad6a34f5
Allow free selection of MTU by the user

Various ISPs (or equipment?) seem to hand out an MTU of only 576 bytes.
Hwoever, this does not seem to be intentional which is why we would like
to manually overwrite this in the configuration.

dhcpcd only allows setting a maximum MTU of 1472 bytes which does not
seem to have any rationale (any more). Although Ethernet might limit any
MTU to less, IPv6 and IPv4 support MTUs of up to 64KiB.

This patch allows the user to configure the MTU freely with providing
some sanity check.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dhcp-common.h