|
From: | Philipp Tölke |
Subject: | Re: [lwip-devel] [bug #34525] Queueing a packet for nd leaks memory |
Date: | Tue, 11 Oct 2011 13:12:43 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
Hello, On 11.10.2011 12:52, Simon Goldschmidt wrote:
its own reference when it does not need it any more (i.e. after sending the pbuf). Plus there's an extra rule that pbufs passed to a send-function that returns success may not be used any more (i.e. don't send the same pbuf twice).
Ok, that seems to solve my problem. For now I am using blocking code to send the data to the Ethernet interface. How would I go about using non-blocking I/O (i.e. DMA)? Thesend-call would return before the memory was no longer used and then I should not free() it in the sending function.
Regards, Philipp Tölke
[Prev in Thread] | Current Thread | [Next in Thread] |