zebra: MBGP routes should not be installed in the kernel

MBGP routes are used only for PIM RPF checks and hence should
not be installed in the kernel's FIB. Ignore route node set to Multicast
SAFI.

Signed-off-by: Balaji.G <balajig81@gmail.com>
Acked-by: Everton Marques <everton.marques@gmail.com>
[pushed down rn->table->info assignment below assert]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index dc7e1ca..b1d8836 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -1249,9 +1249,12 @@
   struct nexthop *nexthop = NULL, *tnexthop;
   int recursing;
   char buf[INET6_ADDRSTRLEN];
-  
+  rib_table_info_t *info;
+
   assert (rn);
-  
+
+  info = rn->table->info;
+
   if (IS_ZEBRA_DEBUG_RIB || IS_ZEBRA_DEBUG_RIB_Q)
     inet_ntop (rn->p.family, &rn->p.u.prefix, buf, INET6_ADDRSTRLEN);
 
@@ -1286,6 +1289,9 @@
       if (! nexthop_active_update (rn, rib, 0))
         continue;
 
+      if (info->safi == SAFI_MULTICAST)
+	continue;
+
       /* Infinit distance. */
       if (rib->distance == DISTANCE_INFINITY)
         continue;