From: Roy Marples Date: Wed, 6 Mar 2019 01:35:43 +0000 (+0000) Subject: route: Enable the free route table again by default X-Git-Tag: v8.0.0~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c7c42c1a78414eee5d0366d33346e3bfc68ede7;p=thirdparty%2Fdhcpcd.git route: Enable the free route table again by default --- diff --git a/src/route.h b/src/route.h index 1786c506..2009df7c 100644 --- a/src/route.h +++ b/src/route.h @@ -40,6 +40,17 @@ #include "dhcpcd.h" #include "sa.h" +/* + * 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 + /* Some systems have route metrics. * OpenBSD route priority is not this. */ #ifndef HAVE_ROUTE_METRIC