mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
pbuf: avoid using multiple PBUF_POOL buffers for IPv6
Use 'PBUF_IP_HLEN+PBUF_TRANSPORT_HLEN' instead of '40' to calculate PBUF_POOL_BUFSIZE (the size of each PBUF_POOL buffer) since the former can be 60 when IPv6 is enabled. See bug #56355 Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
dae8eb8d6e
commit
a4b578b483
@ -1577,7 +1577,7 @@
|
|||||||
* TCP_MSS, IP header, and link header.
|
* TCP_MSS, IP header, and link header.
|
||||||
*/
|
*/
|
||||||
#if !defined PBUF_POOL_BUFSIZE || defined __DOXYGEN__
|
#if !defined PBUF_POOL_BUFSIZE || defined __DOXYGEN__
|
||||||
#define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN+PBUF_LINK_HLEN)
|
#define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+PBUF_IP_HLEN+PBUF_TRANSPORT_HLEN+PBUF_LINK_ENCAPSULATION_HLEN+PBUF_LINK_HLEN)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user