From ef4f5cc0e5a0a51701f121824dc6a6cf601d1fa7 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Fri, 10 Apr 2009 00:37:48 +0000 Subject: [PATCH] Made TCP MSS configurable --- core/net/uipopt.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/net/uipopt.h b/core/net/uipopt.h index 35c01fb0c..06bc65e06 100644 --- a/core/net/uipopt.h +++ b/core/net/uipopt.h @@ -58,7 +58,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: uipopt.h,v 1.10 2009/03/15 20:29:04 nvt-se Exp $ + * $Id: uipopt.h,v 1.11 2009/04/10 00:37:48 adamdunkels Exp $ * */ @@ -383,7 +383,11 @@ * This is should not be to set to more than * UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN. */ +#ifdef UIP_CONF_TCP_MSS +#define UIP_TCP_MSS UIP_CONF_TCP_MSS +#else #define UIP_TCP_MSS (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) +#endif /** * The size of the advertised receiver's window.