From 69ec30b7b91cfbaeb2513c690c3a13d2b3b8ee32 Mon Sep 17 00:00:00 2001 From: Kevin Bracey Date: Fri, 12 May 2017 10:19:13 +0300 Subject: [PATCH] Disable lwIP checksum-on-copy Current version of lwIP has a bug in its checksum-on-copy code - see https://github.com/ARMmbed/mbed-os/issues/4140 and https://savannah.nongnu.org/bugs/?50914 Pending a fix from lwIP, set LWIP_CHECKSUM_ON_COPY to 0 to work around. Will impact performance. --- features/FEATURE_LWIP/lwip-interface/lwipopts.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/FEATURE_LWIP/lwip-interface/lwipopts.h b/features/FEATURE_LWIP/lwip-interface/lwipopts.h index b6521653502..e2372bae799 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwipopts.h +++ b/features/FEATURE_LWIP/lwip-interface/lwipopts.h @@ -249,7 +249,8 @@ #define LWIP_BROADCAST_PING 1 -#define LWIP_CHECKSUM_ON_COPY 1 +// Checksum-on-copy disabled due to https://savannah.nongnu.org/bugs/?50914 +#define LWIP_CHECKSUM_ON_COPY 0 #define LWIP_NETIF_HOSTNAME 1 #define LWIP_NETIF_STATUS_CALLBACK 1