]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Revert "route: Disable RT_FREE_ROUTE_TABLE by default."
authorRoy Marples <roy@marples.name>
Tue, 16 Apr 2019 18:48:46 +0000 (19:48 +0100)
committerRoy Marples <roy@marples.name>
Tue, 16 Apr 2019 18:48:46 +0000 (19:48 +0100)
This reverts commit 46059a78ef33341de80c0085570f71bf0ec15e8b.

src/route.h

index dc7c800fa45c7da77fdd96e0fde03f48a51e742d..2009df7c7a712f2bd9d04cf2c19a61fc44debe12 100644 (file)
 #include "dhcpcd.h"
 #include "sa.h"
 
-/* libc malloc should be good enough */
-#if defined(RT_FREE_ROUTE_TABLE) && RT_FREE_ROUTE_TABLE == 0
+/*
+ * Enable the route free list by default as
+ * memory usage is still reported as low/unchanged even
+ * when dealing with millions of routes.
+ */
+#if !defined(RT_FREE_ROUTE_TABLE)
+#define RT_FREE_ROUTE_TABLE
+#elif RT_FREE_ROUTE_TABLE == 0
 #undef RT_FREE_ROUTE_TABLE
 #endif