From d6792f9d7d7b51426a385f962688e96f641db351 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 19 Nov 2017 19:44:01 -0500 Subject: [PATCH] zebra: When uninstalling a non-unicast route mark it so 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 --- zebra/zebra_rib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index b5c2bc6dae..5e0baf807d 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -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; } -- 2.39.5