From: Roy Marples Date: Tue, 16 Apr 2019 18:48:46 +0000 (+0100) Subject: Revert "route: Disable RT_FREE_ROUTE_TABLE by default." X-Git-Tag: v8.0.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e5d3147b248007a74293057c8873e4e1664eae;p=thirdparty%2Fdhcpcd.git Revert "route: Disable RT_FREE_ROUTE_TABLE by default." This reverts commit 46059a78ef33341de80c0085570f71bf0ec15e8b. --- diff --git a/src/route.h b/src/route.h index dc7c800f..2009df7c 100644 --- a/src/route.h +++ b/src/route.h @@ -40,8 +40,14 @@ #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