core: ignore DHCP-sent MTUs less than 577 (lp #352779)

MTUs less than 577 are not legal and the DHCP server is just being
stupid.  Punch stupidity in the face.
This commit is contained in:
Dan Williams 2009-04-07 15:17:33 -04:00
parent ba9a0ad232
commit 0b7517ffa0

View file

@ -947,7 +947,7 @@ nm_dhcp_manager_options_to_ip4_config (const char *iface, GHashTable *options)
if ((errno == EINVAL) || (errno == ERANGE))
goto error;
if (int_mtu)
if (int_mtu > 576)
nm_ip4_config_set_mtu (ip4_config, int_mtu);
}