]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
route: Enable the free route table again by default
authorRoy Marples <roy@marples.name>
Wed, 6 Mar 2019 01:35:43 +0000 (01:35 +0000)
committerRoy Marples <roy@marples.name>
Wed, 6 Mar 2019 01:35:43 +0000 (01:35 +0000)
src/route.h

index 1786c506ae59440caabb30769d2fc1aeeb255284..2009df7c7a712f2bd9d04cf2c19a61fc44debe12 100644 (file)
 #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