From d1285db253f65a7863d94714bd16925c0e8a52cf Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Mon, 4 Mar 2019 11:54:44 -0500 Subject: [PATCH] zebra: Add flags to nexthops received from the kernel Added the appropriate flags that need to be set when we receive a nexthop from the kernel. They should be marked as ACTIVE and that they are in the FIB. 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 b30805b982..465b422c52 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -2125,6 +2125,10 @@ int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) } + SET_FLAG(nh.flags, NEXTHOP_FLAG_ACTIVE); + if (nhm->nh_flags & RTNH_F_ONLINK) + SET_FLAG(nh.flags, NEXTHOP_FLAG_ONLINK); + nexthop_group_add_sorted(&nhg, &nh); if (nhe) {