NetServices Stack source

Dependents:   HelloWorld ServoInterfaceBoardExample1 4180_Lab4

Files at this revision

API Documentation at this revision

Comitter:
donatien
Date:
Wed Jul 28 11:55:27 2010 +0000
Parent:
6:b7dd7cde8ad2
Child:
8:93fa3cfc0219
Commit message:

Changed in this revision

dbg/dbg.h Show annotated file Show diff for this revision Revisions of this file
if/ppp/PPPNetIf.h Show annotated file Show diff for this revision Revisions of this file
lwip/lwipopts.h Show annotated file Show diff for this revision Revisions of this file
--- a/dbg/dbg.h	Wed Jul 28 10:18:21 2010 +0000
+++ b/dbg/dbg.h	Wed Jul 28 11:55:27 2010 +0000
@@ -21,6 +21,10 @@
 THE SOFTWARE.
 */
 
+/** \file
+Debugging helpers header file
+*/
+
 //#ifdef DBG_H
 //#define DBG_H
 
@@ -28,7 +32,11 @@
 #define __DEBUG
 #endif
 
-///To define to enable debugging in one file
+/*!
+  \def __DEBUG
+  To define to enable debugging in one file
+*/
+
 #ifdef __DEBUG
 
 #ifndef __DEBUGSTREAM
--- a/if/ppp/PPPNetIf.h	Wed Jul 28 10:18:21 2010 +0000
+++ b/if/ppp/PPPNetIf.h	Wed Jul 28 11:55:27 2010 +0000
@@ -25,7 +25,7 @@
 PPP Generic network interface header file
 */
 
-//This is a NetServer-like backend for PPP, using lwIP
+//This is a backend for PPP, using lwIP
 
 #ifndef PPPNETIF_H
 #define PPPNETIF_H
--- a/lwip/lwipopts.h	Wed Jul 28 10:18:21 2010 +0000
+++ b/lwip/lwipopts.h	Wed Jul 28 11:55:27 2010 +0000
@@ -277,10 +277,10 @@
 
 /* TCP Maximum segment size. */
 //#define TCP_MSS                 1024
-#define TCP_MSS                   1024//0x276//536//0x276
+#define TCP_MSS                   536//0x276//536//0x276
 
 /* TCP sender buffer space (bytes). */
-#define TCP_SND_BUF             2048
+#define TCP_SND_BUF             (3 * TCP_MSS)
 
 /* TCP sender buffer space (pbufs). This must be at least = 2 *
    TCP_SND_BUF/TCP_MSS for things to work. */
@@ -292,7 +292,7 @@
 #define TCP_SNDLOWAT        (TCP_SND_BUF/2)
 
 /* TCP receive window. */
-#define TCP_WND        1024         //8096
+#define TCP_WND        (3 * TCP_MSS)         //8096
 
 /* Maximum number of retransmissions of data segments. */
 //#define TCP_MAXRTX              12