summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_route.c
diff options
context:
space:
mode:
authorDinesh Dutt <ddutt@cumulusnetworks.com>2013-08-24 07:55:36 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2013-11-07 18:15:42 -0800
commite39d05384d4563f04edf339bbd67a117dd18e533 (patch)
tree5c1ea95d4fcd993014974c862c4b97c8064e7a5f /ospf6d/ospf6_route.c
parenta765eb9383c53c68523a67b36cea92eadf6f3439 (diff)
downloadquagga-e39d05384d4563f04edf339bbd67a117dd18e533.tar.bz2
quagga-e39d05384d4563f04edf339bbd67a117dd18e533.tar.xz
ospf6d: turn off expensive debugging
OSPF6 has very expensive LSDB and route debug on by default. This needs to be turned off for scaled performance. Signed-off-by: James Li <jli at cumulusnetworks.com> Reviewed-by: Dinesh G Dutt <ddutt at cumulusnetworks.com>Summary: Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_route.c')
-rw-r--r--ospf6d/ospf6_route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index 398acfa8..5f1869ac 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -304,7 +304,7 @@ ospf6_route_lookup_bestmatch (struct prefix *prefix,
return route;
}
-#ifndef NDEBUG
+#ifdef DEBUG
static void
route_table_assert (struct ospf6_route_table *table)
{
@@ -350,7 +350,7 @@ route_table_assert (struct ospf6_route_table *table)
#define ospf6_route_table_assert(t) (route_table_assert (t))
#else
#define ospf6_route_table_assert(t) ((void) 0)
-#endif /*NDEBUG*/
+#endif /*DEBUG*/
struct ospf6_route *
ospf6_route_add (struct ospf6_route *route,