|
From: | Michael Steinberg |
Subject: | Re: [lwip-users] Queueing up UDP packets in RAW api |
Date: | Thu, 15 Feb 2018 18:55:12 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hey, right, it was silly to even ask really ;)Would I cause considerable harm to the RAM-pool if I allocated the necessary storage for queueing (basically a linked list node) from it with a RAW allocation? The packet and node pbufs would be deallocated together again later-on. The alternative would be to define a limit of packets to queue up, since space is at premium and I can't add another heap allocator... Maybe I'm just not seeing the easy solution today ;)
Kind regards Michael Am 15.02.2018 um 13:04 schrieb Simon Goldschmidt:
Steinberg Michael wrote:I need to queue up received UDP packets inside the UDP receive callback (RAW API) for an event driven->polling transfer. I take that the passed in pbuf pointers may very well point to pbuf chains, right?Yes.Abusing the pbuf next pointers for my own custom packet queue seemed like a quick answer, but I fear that it might backfire quickly...Not a good idea. Simon _______________________________________________ lwip-users mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/lwip-users
[Prev in Thread] | Current Thread | [Next in Thread] |