mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-31 15:41:02 +08:00
feat(lwip): Add macro "LWIP_SUPPORT_CUSTOM_PBUF"
LWIP of newer version has this.
This commit is contained in:
@ -37,6 +37,8 @@
|
||||
#define SOCKETS_MT
|
||||
|
||||
//#define SOCKETS_TCP_TRACE
|
||||
|
||||
#define LWIP_SUPPORT_CUSTOM_PBUF 1
|
||||
/*
|
||||
-----------------------------------------------
|
||||
---------- Platform specific locking ----------
|
||||
|
@ -40,9 +40,11 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef LWIP_SUPPORT_CUSTOM_PBUF
|
||||
/** Currently, the pbuf_custom code is only needed for one specific configuration
|
||||
* of IP_FRAG */
|
||||
#define LWIP_SUPPORT_CUSTOM_PBUF (IP_FRAG && !IP_FRAG_USES_STATIC_BUF && !LWIP_NETIF_TX_SINGLE_PBUF)
|
||||
#endif
|
||||
|
||||
/* @todo: We need a mechanism to prevent wasting memory in every pbuf
|
||||
(TCP vs. UDP, IPv4 vs. IPv6: UDP/IPv4 packets may waste up to 28 bytes) */
|
||||
|
Reference in New Issue
Block a user