From 0b7517ffa05c108b8b2fc88b7819e7c8cb4a9e1f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 7 Apr 2009 15:17:33 -0400 Subject: [PATCH] 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. --- src/dhcp-manager/nm-dhcp-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhcp-manager/nm-dhcp-manager.c b/src/dhcp-manager/nm-dhcp-manager.c index f7c1095afd..cefe769658 100644 --- a/src/dhcp-manager/nm-dhcp-manager.c +++ b/src/dhcp-manager/nm-dhcp-manager.c @@ -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); }