Skip to content

Commit 77f8472

Browse files
committed
esp8266: Increase MSS to 1460 but reduce window size to 2 x MSS
UniFi have trouble forwarding packets in the AP -> ESP direction when MSS is set to 536.
1 parent 12db6d0 commit 77f8472

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

platforms/esp8266/Makefile.build

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ MEMORY_FLAGS = -DFS_MAX_OPEN_FILES=5
164164
.PHONY: all clean
165165

166166
# NB: These setting must match ones used during build of the LwIP library during Docker image build.
167-
LWIP_CFLAGS = -DTCP_MSS=536 -DTCP_MSL=5000 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DLWIP_COMPAT_SOCKETS=0 \
167+
LWIP_CFLAGS = -DTCP_MSS=1460 -DTCP_MSL=5000 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DLWIP_COMPAT_SOCKETS=0 \
168168
-I$(MGOS_PATH)/include
169-
LIBS += -llwip2-536-feat
169+
LIBS += -llwip2-1460-feat
170170
IPATH += /opt/Espressif/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/lwip2
171171

172172
MGOS_CFLAGS = -DMGOS_APP=\"$(APP)\" \

platforms/esp8266/sdk.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker.io/mgos/esp8266-build:3.0.0_158bb7a5-r1
1+
docker.io/mgos/esp8266-build:3.0.4_158bb7a5-r1

0 commit comments

Comments
 (0)