From 4a3ae7fa37f591efba96cc4104ca9a0e39556945 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 12 May 2012 17:13:45 +0200 Subject: [PATCH] dhcpcd: ignore MTU Smaller than 577. Normally 576 is the smallest valid mtu but some cable provider set this also if they support much higher mtu's. Fedora does not accept this to prevent speed problems with such isp connections so we do the same. If you really need mtu=576 you can still force at at the setup. --- config/rootfiles/core/59/filelists/files | 1 + lfs/dhcpcd | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/59/filelists/files b/config/rootfiles/core/59/filelists/files index 16464c7582..fef386b986 100644 --- a/config/rootfiles/core/59/filelists/files +++ b/config/rootfiles/core/59/filelists/files @@ -4,3 +4,4 @@ srv/web/ipfire/cgi-bin/index.cgi srv/web/ipfire/cgi-bin/ovpnmain.cgi var/ipfire/general-functions.pl var/ipfire/langs +var/ipfire/dhcpc/dhcpcd-hooks/10-mtu diff --git a/lfs/dhcpcd b/lfs/dhcpcd index e843b9a75c..f7a8c361c6 100644 --- a/lfs/dhcpcd +++ b/lfs/dhcpcd @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2012 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -76,6 +76,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) --mandir=/usr/share/man --disable-nls cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install + ln -sf /etc/rc.d/init.d/networking/dhcpcd.exe \ $(CONFIG_ROOT)/dhcpc/dhcpcd-hooks/70-dhcpcd.exe rm -f $(CONFIG_ROOT)/dhcpc/dhcpcd-hooks/20-resolv.conf @@ -84,5 +85,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) rm -f $(CONFIG_ROOT)/dhcpc/dhcpcd-hooks/50-yp.conf rm -f $(CONFIG_ROOT)/dhcpc/dhcpcd-hooks/50-ypbind + sed -i -e "s|-ge 576|-gt 576|g" $(CONFIG_ROOT)/dhcpc/dhcpcd-hooks/10-mtu + @rm -rf $(DIR_APP) @$(POSTBUILD) -- 2.39.2