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
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;