]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra_rib: Revert debug hooks.
authorEverton Marques <everton.marques@gmail.com>
Mon, 22 Sep 2014 21:00:15 +0000 (18:00 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 30 May 2016 00:58:42 +0000 (20:58 -0400)
zebra/zebra_rib.c

index f7290caea9db827bc9853766e287e3e4d7dd0bbd..883fe07c1b82c0715293b074dd9533a6a90048b7 100644 (file)
@@ -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)