From ef51d23473d063cd29333d7f4a7632178eea8f40 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 10 Nov 2017 21:38:13 +0000 Subject: [PATCH] fuzix-conf: set the mss based upon the device mtu --- Applications/netd/fuzix-conf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Applications/netd/fuzix-conf.h b/Applications/netd/fuzix-conf.h index 7c4444ee..e0bf9cb2 100644 --- a/Applications/netd/fuzix-conf.h +++ b/Applications/netd/fuzix-conf.h @@ -29,6 +29,7 @@ typedef uint8_t uip_stats_t; #define UIP_CONF_RECEIVE_WINDOW 1500 +#define UIP_CONF_TCP_MSS (mtu - 40) #define UIP_RAW 1 #define UIP_RAW_CONNS 8 @@ -45,3 +46,5 @@ typedef uint8_t uip_stats_t; extern void netd_appcall(void); extern void netd_udp_appcall(void); extern void netd_raw_appcall(void); + +extern uint16_t mtu; -- 2.34.1