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.
This commit is contained in:
Damien George 2019-09-12 18:05:27 +10:00
parent cb84e22ac6
commit b0e17bbb9d

View File

@ -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