On Thu, 2009-08-13 at 04:09 -0700, JM wrote:
You're assuming that the stack will only receive packets for your
application. In most networks this is not true - there will be a fair
number of broadcasts, and other stuff that your application will never
see. These will still be passed to the stack, and each will
use (at
least) one PBUF_POOL pbuf. There may be other things, such as TCP ACKs
for any data you send, that also come in as separate packets and each
use PBUF_POOL pbufs.
Chris's point about using more-but-smaller pbufs in the pool is a good
one. It will mean you might get away with less memory and fewer dropped
packets, at the cost of a little extra overhead for the chaining.
Kieran
_______________________________________________
lwip-users mailing list
address@hiddenhttp://lists.nongnu.org/mailman/listinfo/lwip-users