]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Compilation was failing without OSPF or RIP protocol - FIXED.
authorOndrej Filip <feela@network.cz>
Thu, 5 May 2011 12:14:20 +0000 (14:14 +0200)
committerOndrej Filip <feela@network.cz>
Thu, 5 May 2011 12:14:20 +0000 (14:14 +0200)
nest/rt-table.c

index 3013b0f723fde20f63baa81d4c6842b21e22a788..b37efef97a05e6be90f753b80633026facd5bd5a 100644 (file)
@@ -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))