From 044e54d1eb4cbd009bd2ab267ab03d78c22c2bba Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Fri, 8 Mar 2019 10:23:34 -0500 Subject: [PATCH] zebra: Set the INSTALLED flags on nexthop entries we receive Add SETs to the flags on nexthop entries to mark installed/uninstalled from the kernel. Signed-off-by: Stephen Worley --- zebra/rt_netlink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index bd0ec78486..98138d607b 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -2299,6 +2299,8 @@ int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) return -1; } } + SET_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED); + } else if (h->nlmsg_type == RTM_DELNEXTHOP) { if (!nhe) { flog_warn( @@ -2308,6 +2310,8 @@ int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) return -1; } + UNSET_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED); + // TODO: Run some active check on all route_entry's? if (nhe->refcnt) { flog_err(