fix(lwip): fix build error with PPP enabled#11403

This commit is contained in:
Evlers
2026-05-20 14:25:06 +08:00
committed by GitHub
parent 3fa50a4b33
commit 3345bbc423
+5 -1
View File
@@ -594,8 +594,12 @@
#define LWIP_NETIF_API 1
#endif
/* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts. */
/* MEMP_NUM_SYS_TIMEOUT: the number of simultaneously active timeouts. */
#if RT_USING_LWIP_VER_NUM == 0x20102
#define MEMP_NUM_SYS_TIMEOUT (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_NUM_TIMEOUTS + (LWIP_IPV6 * (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD)))
#else
#define MEMP_NUM_SYS_TIMEOUT (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_SUPPORT + (LWIP_IPV6 ? (1 + (2*LWIP_IPV6)) : 0))
#endif
/*
* LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names.