summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorBalaji <balajig81@gmail.com>2014-10-23 15:25:25 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-05-26 20:42:53 +0000
commit7498d58d56705851de9db5f5676aaa7da3ebe35b (patch)
tree88d7fb6e916c97ed7ab4370f9a91decd2241455d /zebra/zebra_rib.c
parent67495ddb2e5b1ed267966dcae938c4a30081a75d (diff)
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> (cherry picked from commit 9511633e08ff15c23608983fdc1bc735d427332e) Conflicts: zebra/zebra_rib.c
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 04ec3adacc..f7290caea9 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -1635,8 +1635,10 @@ rib_process (struct route_node *rn)
rib_dest_t *dest;
struct zebra_vrf *zvrf = NULL;
vrf_id_t vrf_id = VRF_UNKNOWN;
+ rib_table_info_t *info;
assert (rn);
+ info = rn->table->info;
dest = rib_dest_from_rnode (rn);
if (dest)
@@ -1718,6 +1720,9 @@ rib_process (struct route_node *rn)
continue;
}
+ if (info->safi == SAFI_MULTICAST)
+ continue;
+
/* Infinite distance. */
if (rib->distance == DISTANCE_INFINITY)
{