On Tue, 2009-04-07 at 09:39 +0200, Fabian Koch wrote: > I propose we do either of the following: > > 1) In the ethernetif-skeleton explicitly document the behavior and > tell the developer to memcpy the data if their transmission is async. > 2) See 1), but tell the developer to increment the reference count and > pbuf_free() themselves (probably faster than memcpy)
Those are fine: more documentation is always good. > 3) Remove the freeing of the pbuf after handing it over to the driver > layer and document that and leave it to the driver developer to > pbuf_free() after the xmit is really done I don't like that one. It's essentially changing the driver/stack interface, and there may be reasons why the stack wants to keep the pbuf around without it being freed. Kieran _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
