39 #ifndef LWIP_MALLOC_MEMPOOL 42 #define LWIP_MALLOC_MEMPOOL(num, size) LWIP_MEMPOOL(POOL_##size, num, (size + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper))), "MALLOC_"#size) 43 #define LWIP_MALLOC_MEMPOOL_START 44 #define LWIP_MALLOC_MEMPOOL_END 47 #ifndef LWIP_PBUF_MEMPOOL 50 #define LWIP_PBUF_MEMPOOL(name, num, payload, desc) LWIP_MEMPOOL(name, num, (MEMP_ALIGN_SIZE(sizeof(struct pbuf)) + MEMP_ALIGN_SIZE(payload)), desc) 74 #if LWIP_IPV4 && IP_REASSEMBLY 77 #if (IP_FRAG && !LWIP_NETIF_TX_SINGLE_PBUF) || (LWIP_IPV6 && LWIP_IPV6_FRAG) 78 LWIP_MEMPOOL(FRAG_PBUF,
MEMP_NUM_FRAG_PBUF,
sizeof(
struct pbuf_custom_ref),
"FRAG_PBUF")
81 #if LWIP_NETCONN || LWIP_SOCKET 88 #if LWIP_MPU_COMPATIBLE 93 #if LWIP_SOCKET && !LWIP_TCPIP_CORE_LOCKING 100 #if !LWIP_TCPIP_CORE_LOCKING_INPUT 105 #if LWIP_IPV4 && LWIP_ARP && ARP_QUEUEING 106 LWIP_MEMPOOL(ARP_QUEUE,
MEMP_NUM_ARP_QUEUE,
sizeof(
struct etharp_q_entry),
"ARP_QUEUE")
113 #if LWIP_TIMERS && !LWIP_TIMERS_CUSTOM 117 #if LWIP_DNS && LWIP_SOCKET 120 #if LWIP_DNS && DNS_LOCAL_HOSTLIST && DNS_LOCAL_HOSTLIST_IS_DYNAMIC 124 #if LWIP_IPV6 && LWIP_ND6_QUEUEING 128 #if LWIP_IPV6 && LWIP_IPV6_REASS 129 LWIP_MEMPOOL(IP6_REASSDATA,
MEMP_NUM_REASSDATA,
sizeof(
struct ip6_reassdata),
"IP6_REASSDATA")
132 #if LWIP_IPV6 && LWIP_IPV6_MLD 153 #if MEMP_USE_CUSTOM_POOLS 154 #include "lwippools.h" 162 #undef LWIP_MALLOC_MEMPOOL 163 #undef LWIP_MALLOC_MEMPOOL_START 164 #undef LWIP_MALLOC_MEMPOOL_END 165 #undef LWIP_PBUF_MEMPOOL #define MEMP_NUM_TCPIP_MSG_API
#define MEMP_NUM_ARP_QUEUE
#define MEMP_NUM_REASSDATA
#define MEMP_NUM_DNS_API_MSG
#define MEMP_NUM_FRAG_PBUF
#define MEMP_NUM_LOCALHOSTLIST
#define MEMP_NUM_TCPIP_MSG_INPKT
#define PBUF_POOL_BUFSIZE
#define MEMP_NUM_NETIFAPI_MSG
#define MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA
#define MEMP_NUM_IGMP_GROUP
#define MEMP_NUM_ND6_QUEUE
#define MEMP_NUM_SYS_TIMEOUT
#define MEMP_NUM_MLD6_GROUP
#define MEMP_NUM_TCP_PCB_LISTEN