|
From: | address@hidden |
Subject: | Re: [lwip-users] Understanding memory configuration |
Date: | Mon, 17 Sep 2018 22:28:27 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 17.09.2018 22:20, Andy Pont wrote:
Yes. Just follow the defines: LWIP_MALLOC_MEMPOOL() -> LWIP_MEMPOOL() -> LWIP_MEMPOOL_DECLARE() -> memp.h lint 95 (git head) instantiates the memory via LWIP_DECLARE_MEMORY_ALIGNED() Ok, this isn't fun to read from the code, but that's the price for making it configurable ;-)
lwIP does *not* use malloc() unless you tell it to!
No. Well, smallest packets are 60 bytes + 16 bytes for struct pbuf and largest packets are ~1514 bytes + 16 bytes for struct pbuf. Add alignment to this and the smallest and largest pool might make sense... Simon |
[Prev in Thread] | Current Thread | [Next in Thread] |