From a6a081e67d334501ae0e32c5baa82127a151fd32 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Thu, 12 Dec 2013 22:43:10 +0100 Subject: [PATCH] Fixed a severe error in the bugfix: the conditional was reversed. The check must be if the TCP MSS is larger than the BUFSIZE and not the other way around. --- core/net/uipopt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/uipopt.h b/core/net/uipopt.h index 117fb20b5..7708d205c 100644 --- a/core/net/uipopt.h +++ b/core/net/uipopt.h @@ -477,7 +477,7 @@ void uip_log(char *msg); * UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN. */ #ifdef UIP_CONF_TCP_MSS -#if UIP_CONF_TCP_MSS < (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) +#if UIP_CONF_TCP_MSS > (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) #error UIP_CONF_TCP_MSS is too large for the current UIP_BUFSIZE #endif /* UIP_CONF_TCP_MSS < (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) */ #define UIP_TCP_MSS (UIP_CONF_TCP_MSS)