From: Roy Marples Date: Fri, 23 Mar 2007 10:02:02 +0000 (+0000) Subject: When MTU is less than 576 we now ignore it instead of setting the MTU to 576. X-Git-Tag: v3.2.3~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f33c4a5f66b7c834a816080143137063f529bbb;p=thirdparty%2Fdhcpcd.git When MTU is less than 576 we now ignore it instead of setting the MTU to 576. --- diff --git a/ChangeLog b/ChangeLog index 46da5318..4a7e6a6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ When we get an invalid length for a DHCP option, try and continue anyway. +When MTU is less than 576 we now ignore it instead of setting the MTU to 576. dhcpcd-3.0.16 RFC 2131 is full of confusion regarding MTU it seems as the effective minimum diff --git a/dhcp.c b/dhcp.c index 95ec84b7..d1c42201 100644 --- a/dhcp.c +++ b/dhcp.c @@ -611,8 +611,8 @@ int parse_dhcpmessage (dhcp_t *dhcp, const dhcpmessage_t *message) In practise it's 576 (minimum maximum message size) */ if (dhcp->mtu < MTU_MIN) { - logger (LOG_ERR, "given MTU %d is too low, minium is %d", dhcp->mtu, MTU_MIN); - dhcp->mtu = MTU_MIN; + logger (LOG_DEBUG, "MTU %d is too low, minium is %d; ignoring", dhcp->mtu, MTU_MIN); + dhcp->mtu = 0; } break;