Author: cgutman
Date: Tue Aug 9 19:55:12 2011
New Revision: 53155
URL:
http://svn.reactos.org/svn/reactos?rev=53155&view=rev
Log:
[LWIP]
- Tune several TCP attributes to behave similarly to Windows XP
Modified:
trunk/reactos/lib/drivers/lwip/src/include/lwipopts.h
Modified: trunk/reactos/lib/drivers/lwip/src/include/lwipopts.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/lwip/src/inclu…
==============================================================================
--- trunk/reactos/lib/drivers/lwip/src/include/lwipopts.h [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/lwip/src/include/lwipopts.h [iso-8859-1] Tue Aug 9 19:55:12
2011
@@ -52,17 +52,23 @@
#define TCP_QUEUE_OOSEQ 1
-#define TCP_MSS 1024
-
-#define TCP_SND_BUF (TCP_MSS * 8)
-
-#define TCP_SND_QUEUELEN (8 * (TCP_SND_BUF / TCP_MSS))
+/* FIXME: These MSS and TCP Window definitions assume an MTU
+ * of 1500. We need to add some code to lwIP which would allow us
+ * to change these values based upon the interface we are
+ * using. Currently ReactOS only supports Ethernet so we're
+ * fine for now but it does need to be fixed later when we
+ * add support for other transport mediums */
+#define TCP_MSS 1460
+
+#define TCP_WND (TCP_MSS * 6)
+
+#define TCP_SND_BUF TCP_WND
+
+#define TCP_SND_QUEUELEN (TCP_SND_BUF / TCP_MSS)
#define TCP_SNDLOWAT TCP_MSS
-#define TCP_WND 0xFFFF
-
-#define TCP_MAXRTX 12
+#define TCP_MAXRTX 8
#define TCP_SYNMAXRTX 4