summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorEverton Marques <everton.marques@gmail.com>2014-09-22 18:00:15 -0300
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-05-29 20:58:42 -0400
commit8f26ef2c687713562dd105386a56bc2b34f5b1a0 (patch)
tree26975fe6aad7715ac9fe62da5ac073b3f14e5b68 /zebra/zebra_rib.c
parent1b428050e9c97874634548a316e3877d5aeef0e8 (diff)
zebra_rib: Revert debug hooks.
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index f7290caea9..883fe07c1b 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -436,7 +436,13 @@ nexthop_active_ipv4 (struct rib *rib, struct nexthop *nexthop, int set,
return 1;
}
- else if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_INTERNAL))
+ else if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_INTERNAL) ||
+ match->type == ZEBRA_ROUTE_KERNEL)
+ /*
+ || match->type == ZEBRA_ROUTE_KERNEL
+ This prevents zebra from marking recursive static route as inactive.
+ See pimd/TODO T26.
+ */
{
resolved = 0;
for (newhop = match->nexthop; newhop; newhop = newhop->next)