|
From: | Bernhard 'Gustl' Bauer |
Subject: | Re: [lwip-users] http server and pbuf overflow |
Date: | Fri, 22 Jan 2010 10:03:22 +0100 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Bill Auerbach schrieb:
Check to be sure your Ethernet driver isn't increasing pbuf->ref anywhere. Some drivers do this so that the packet is freed only after a DMA transfer is complete and not at the time low_level_output returns. If it's freed too soon the packet can be corrupted if its pbuf is used before the DMA finishes.
I only use pbuf_alloc() and pbuf_free(). I never use pbuf_ref(), or access pbuf->ref.
[Prev in Thread] | Current Thread | [Next in Thread] |