John Kennedy wrote:
Since pbuf_free decrements the pbuf reference count and only frees the pbuf 
when the reference count goes to zero I assumed that by incrementing the 
reference count in the Ethernet driver it would prevent the stack from freeing 
or reusing the pbuf, and that the Ethernet driver should then call pbuf_free 
when done with the pbuf.  My original question was to verify this assumption.

Your assumtption is indeed correct, but it doesn't account for application buffers used with PBUF_REF/_ROM.

Simon


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to