[PATCH 2.4] IP: disable ECN support by default - Config option

Marc-Christian Petersen (m.c.p@wolk-project.de)
Tue, 10 Dec 2002 03:18:21 +0100


--------------Boundary-00=_L2TVFNVZQT0JANMV2HEV
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Marcelo,

attached super trivial patch gives us a config option to choose whether w=
e=20
want ECN disabled per default if selected or not.

consider for inclusion into 2.4.

Has been in WOLK and in Debian kernels for ages.

ciao, Marc
--------------Boundary-00=_L2TVFNVZQT0JANMV2HEV
Content-Type: text/x-diff;
charset="us-ascii";
name="ecn-disable-per-default-config-option.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ecn-disable-per-default-config-option.patch"

--- linux-old/net/ipv4/Config.in
+++ linux-wolk/net/ipv4/Config.in
@@ -40,6 +40,9 @@
bool ' IP: ARP daemon support (EXPERIMENTAL)' CONFIG_ARPD
fi
bool ' IP: TCP Explicit Congestion Notification support' CONFIG_INET_ECN
+if [ "$CONFIG_INET_ECN" = "y" ]; then
+ bool ' IP: disable ECN support by default' CONFIG_INET_ECN_DISABLED
+fi
bool ' IP: TCP syncookie support (disabled per default)' CONFIG_SYN_COOKIES
if [ "$CONFIG_NETFILTER" != "n" ]; then
source net/ipv4/netfilter/Config.in
--- linux-old/net/ipv4/tcp_input.c
+++ linux-wolk/net/ipv4/tcp_input.c
@@ -74,7 +74,7 @@
int sysctl_tcp_sack = 1;
int sysctl_tcp_fack = 1;
int sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH;
-#ifdef CONFIG_INET_ECN
+#if defined(CONFIG_INET_ECN) && !defined(CONFIG_INET_ECN_DISABLED)
int sysctl_tcp_ecn = 1;
#else
int sysctl_tcp_ecn = 0;

--------------Boundary-00=_L2TVFNVZQT0JANMV2HEV--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/