mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-24 20:20:23 +01:00
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:
parent
ba9a0ad232
commit
0b7517ffa0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue