Re: [lwip-users] How to limit the UDP Rx packet size to avoid big RAM allocations

2018-06-19 Thread goldsi...@gmx.de
On 19.06.2018 18:11, Sergio R. Caprile wrote: UDP datagrams are carried by Ethernet frames. It is not lwIP but your driver who allocates memory to hold those frames before handling them to lwIP, which in turn will deliver to your application. The only way to stop allocation is there. Someone coul

Re: [lwip-users] How to limit the UDP Rx packet size to avoid big RAM allocations

2018-06-19 Thread Sergio R. Caprile
UDP datagrams are carried by Ethernet frames. It is not lwIP but your driver who allocates memory to hold those frames before handling them to lwIP, which in turn will deliver to your application. The only way to stop allocation is there. Someone could also send pings of death, repeated SYNs... If

[lwip-users] How to limit the UDP Rx packet size to avoid big RAM allocations

2018-06-19 Thread R. Diez
Hi all: I have a small STM32 microcontroller with little RAM. I mean, I do not count available memory in Gigabytes or Megabytes, but in Kilobytes. 8-) I am implementing a very simple protocol based on UDP. I know that the maximum UDP packet length will be short, according to my protocol impl