]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
DHCP: No longer set interface mtu (#346)
authorRoy Marples <roy@marples.name>
Mon, 29 Jul 2024 15:17:08 +0000 (16:17 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Jul 2024 15:17:08 +0000 (16:17 +0100)
commit5ac1235b99d33085d0574ef81b95ceafcf79db34
tree4efea5f826927e1354e54c02d7983f0c3db829bb
parent9330dbb44f48f14903c3cf59c58166c0da4ca173
DHCP: No longer set interface mtu (#346)

We've been enforcing an interface MTU that is slightly larger
than the minimum for some time.
Instead, log an error than the MTU is smaller than the minimum
to send a BOOTP message.

The DHCP MTU is only used when adding routes as setting the
interface MTU can cause a PHY reset which is bad.

Fixes #345
src/dhcp-common.h
src/dhcp.c
src/if-options.c
src/if.c
src/if.h
src/ipv4.h