mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-29 12:14:28 +00:00
2007-03-21 Kieran Mansley
* opt.h Change default PBUF_POOL_BUFSIZE to accomodate default MSS + IP and TCP headers
This commit is contained in:
parent
7294cb080b
commit
d7ff85850c
@ -66,6 +66,10 @@ HISTORY
|
|||||||
* api_lib.c: Use memcpy in netbuf_copy_partial.
|
* api_lib.c: Use memcpy in netbuf_copy_partial.
|
||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
2007-03-21 Kieran Mansley
|
||||||
|
* opt.h Change default PBUF_POOL_BUFSIZE to accomodate default MSS +
|
||||||
|
IP and TCP headers
|
||||||
|
|
||||||
2007-03-21 Kieran Mansley
|
2007-03-21 Kieran Mansley
|
||||||
* Fix all uses of pbuf_header to check the return value. In some
|
* Fix all uses of pbuf_header to check the return value. In some
|
||||||
cases just assert if it fails as I'm not sure how to fix them, but
|
cases just assert if it fails as I'm not sure how to fix them, but
|
||||||
|
@ -153,7 +153,8 @@ a lot of data that needs to be copied, this should be set high. */
|
|||||||
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
|
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
|
||||||
|
|
||||||
#ifndef PBUF_POOL_BUFSIZE
|
#ifndef PBUF_POOL_BUFSIZE
|
||||||
#define PBUF_POOL_BUFSIZE 128
|
/* TCP_MSS + 40 for IP and TCP headers */
|
||||||
|
#define PBUF_POOL_BUFSIZE (128+40)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* PBUF_LINK_HLEN: the number of bytes that should be allocated for a
|
/* PBUF_LINK_HLEN: the number of bytes that should be allocated for a
|
||||||
|
Loading…
Reference in New Issue
Block a user