stm32/lwip_inc: Update to enable mDNS, TCP listen backlog, faster DHCP.
#include <stdint.h>
+// This protection is not needed, instead we execute all lwIP code at PendSV priority
+#define SYS_ARCH_DECL_PROTECT(lev) do { } while (0)
+#define SYS_ARCH_PROTECT(lev) do { } while (0)
+#define SYS_ARCH_UNPROTECT(lev) do { } while (0)
+
#define NO_SYS 1
#define SYS_LIGHTWEIGHT_PROT 1
#define MEM_ALIGNMENT 4
#define LWIP_IPV6 0
#define LWIP_DHCP 1
#define LWIP_DHCP_CHECK_LINK_UP 1
+#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up
#define LWIP_DNS 1
+#define LWIP_DNS_SUPPORT_MDNS_QUERIES 1
+#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 SO_REUSE 1
+#define TCP_LISTEN_BACKLOG 1
extern uint32_t rng_get(void);
#define LWIP_RAND() rng_get()
