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:
kieranm 2007-03-21 13:05:51 +00:00
parent 7294cb080b
commit d7ff85850c
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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