Closed hlef closed 5 months ago
This wastes a lot of space for IPv4 addresses. I would still like separate arrays for each, I just want them sorted / searched with something like qsort (sort variable-sized things taking the size as an argument, using memcmp rather than comparison operators for sorting). This can be done either by writing in a more C style, or by providing iterations to the standard algorithms that are initialised with a dynamic size.
Sounds like we want a different approach here. I'll close this one for now and come back with what we discussed.
The firewall is a little bit too big. Reduce the code size by...
EndpointsTable
. Instead, go for a fixed-size buffer that can contain both IPV4 and IPV6 addresses.find_endpoint
andremove_endpoint
which rely on large templated C++ utility functions.With this, we gain about 2kB.