|
From: | Jani Monoses |
Subject: | [lwip-users] Re: [lwip] Memory leak and queued packets in etharp.c |
Date: | Thu, 09 Jan 2003 00:09:21 -0000 |
> Another issue is the queueing of packets that > are created by the user code with netbuf_ref(). > This creates a chained pbuf with at least one > one element having the attribute PBUF_ROM. > There's a pending danger that the data part > of such a buffer gets overwritten by the > application before the queued packet is sent. > Should these be copied? The application must only overwrite that area when it's certain that it got sent.How it is to be notified I don't know. But the point of PBUF_ROM is to tell the stack not to copy so I think it shouldn't. [This message was sent through the lwip discussion list.]
[Prev in Thread] | Current Thread | [Next in Thread] |