From: Ondrej Filip Date: Thu, 5 May 2011 12:14:20 +0000 (+0200) Subject: Compilation was failing without OSPF or RIP protocol - FIXED. X-Git-Tag: v1.3.2~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7c48981069f25c01c552519e10aec4ebab1f031;p=thirdparty%2Fbird.git Compilation was failing without OSPF or RIP protocol - FIXED. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 3013b0f72..b37efef97 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1486,13 +1486,18 @@ rt_get_igp_metric(rte *rt) return ea->u.data; rta *a = rt->attrs; + +#ifdef CONFIG_OSPF if ((a->source == RTS_OSPF) || (a->source == RTS_OSPF_IA) || (a->source == RTS_OSPF_EXT1)) return rt->u.ospf.metric1; +#endif +#ifdef CONFIG_RIP if (a->source == RTS_RIP) return rt->u.rip.metric; +#endif /* Device routes */ if ((a->dest != RTD_ROUTER) && (a->dest != RTD_MULTIPATH))