From 8dff84e0a278b6f2af1227df2d615fd2f813f222 Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Thu, 1 Oct 2015 15:12:24 +1000 Subject: [PATCH] Missing file from the LWIP upgrade/import. --- app/include/lwipopts.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/app/include/lwipopts.h b/app/include/lwipopts.h index 90933116..b39f8d76 100644 --- a/app/include/lwipopts.h +++ b/app/include/lwipopts.h @@ -771,7 +771,18 @@ #ifndef LWIP_IGMP #define LWIP_IGMP 1 #endif - +/* + ---------------------------------- + ---------- MDNS options ---------- + ---------------------------------- +*/ +/** + * LWIP_MDNS==1: Turn on MDNS module. + */ +#ifndef LWIP_MDNS +#define LWIP_MDNS 1 +#endif +/* /* ---------------------------------- ---------- DNS options ----------- @@ -887,21 +898,21 @@ * (2 * TCP_MSS) for things to work well */ #ifndef TCP_WND -#define TCP_WND (4 * TCP_MSS) +#define TCP_WND (*(volatile uint32*)0x600011F0) #endif /** * TCP_MAXRTX: Maximum number of retransmissions of data segments. */ #ifndef TCP_MAXRTX -#define TCP_MAXRTX 3 +#define TCP_MAXRTX (*(volatile uint32*)0x600011E8) #endif /** * TCP_SYNMAXRTX: Maximum number of retransmissions of SYN segments. */ #ifndef TCP_SYNMAXRTX -#define TCP_SYNMAXRTX 3 +#define TCP_SYNMAXRTX (*(volatile uint32*)0x600011E4) #endif /** @@ -926,6 +937,7 @@ #define TCP_QUEUE_OOSEQ 0 #endif +#if 1 /** * TCP_MSS: TCP Maximum segment size. (default is 536, a conservative default, * you might want to increase this.) @@ -936,6 +948,7 @@ #ifndef TCP_MSS #define TCP_MSS 1460 #endif +#endif /** * TCP_CALCULATE_EFF_SEND_MSS: "The maximum size of a segment that TCP really @@ -1081,7 +1094,7 @@ * field. */ #ifndef LWIP_NETIF_HOSTNAME -#define LWIP_NETIF_HOSTNAME 0 +#define LWIP_NETIF_HOSTNAME 1 #endif /** @@ -2045,8 +2058,4 @@ #define DNS_DEBUG LWIP_DBG_OFF #endif -#ifndef TCP_MSL -#define TCP_MSL 2000UL /* The maximum segment lifetime in milliseconds */ -#endif - #endif /* __LWIP_OPT_H__ */