Skip to content

Commit

Permalink
esp8266: Increase MSS to 1460 but reduce window size to 2 x MSS
Browse files Browse the repository at this point in the history
UniFi have trouble forwarding packets in the AP -> ESP direction when MSS is set to 536.
  • Loading branch information
rojer committed Feb 20, 2021
1 parent 12db6d0 commit 77f8472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions platforms/esp8266/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ MEMORY_FLAGS = -DFS_MAX_OPEN_FILES=5
.PHONY: all clean

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

MGOS_CFLAGS = -DMGOS_APP=\"$(APP)\" \
Expand Down
2 changes: 1 addition & 1 deletion platforms/esp8266/sdk.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker.io/mgos/esp8266-build:3.0.0_158bb7a5-r1
docker.io/mgos/esp8266-build:3.0.4_158bb7a5-r1

0 comments on commit 77f8472

Please sign in to comment.