Ben Hastings wrote:
On a side note, what happens if the pbuf is freed before the end of the callback? Does that also free the memory that the address pointer points to?
That's a good point. Since p->ref is (almost always) == 1 at the point where the pbuf is passed to the receive callback, it will get freed when pbuf_free(p) is called. I'd still vote for copying the address before calling the receive callback function. It might be a *little* less performant, but safer.
Simon _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
