]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: When uninstalling a non-unicast route mark it so 1470/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 20 Nov 2017 00:44:01 +0000 (19:44 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 20 Nov 2017 00:47:32 +0000 (19:47 -0500)
The rib_uninstall_kernel for non-UNICAST routes when
it is marking a route as no-longer installed should
actually mark it as uninstalled.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_rib.c

index b5c2bc6dae58a46fe97e19fe806588d9dcfd35ac..5e0baf807d28f5c58a259d44770a421ccdbc69a6 100644 (file)
@@ -1060,7 +1060,7 @@ int rib_uninstall_kernel(struct route_node *rn, struct route_entry *re)
 
        if (info->safi != SAFI_UNICAST) {
                for (ALL_NEXTHOPS(re->nexthop, nexthop))
-                       SET_FLAG(nexthop->flags, NEXTHOP_FLAG_FIB);
+                       UNSET_FLAG(nexthop->flags, NEXTHOP_FLAG_FIB);
                return ret;
        }