diff options
author | Damien George <damien.p.george@gmail.com> | 2019-09-12 18:05:27 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-09-12 18:05:27 +1000 |
commit | b0e17bbb9d804b04a566b809c19acd5128f972e5 (patch) | |
tree | 3bec22c48c36dcf71f1416a0f9239c7a10b27729 | |
parent | cb84e22ac6b1356986f63f5b6db95493da81fa5f (diff) |
stm32/lwip_inc: Allocate additional MEMP_SYS_TIMEOUT when mDNS enabled.
Since v2.1 of lwIP mDNS uses a MEMP_SYS_TIMEOUT slot, so allocate an extra
one when this feature is enabled.
-rw-r--r-- | ports/stm32/lwip_inc/lwipopts.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/stm32/lwip_inc/lwipopts.h b/ports/stm32/lwip_inc/lwipopts.h index c9bbde92f..4ad1ae008 100644 --- a/ports/stm32/lwip_inc/lwipopts.h +++ b/ports/stm32/lwip_inc/lwipopts.h @@ -32,8 +32,9 @@ #define LWIP_MDNS_RESPONDER 1 #define LWIP_IGMP 1 -#define LWIP_NUM_NETIF_CLIENT_DATA 1 // mDNS responder requires 1 -#define MEMP_NUM_UDP_PCB 5 // mDNS responder requires 1 +#define LWIP_NUM_NETIF_CLIENT_DATA LWIP_MDNS_RESPONDER +#define MEMP_NUM_UDP_PCB (4 + LWIP_MDNS_RESPONDER) +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + LWIP_MDNS_RESPONDER) #define SO_REUSE 1 #define TCP_LISTEN_BACKLOG 1 |