mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 07:56:29 +00:00
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 <sworley@cumulusnetworks.com>
This commit is contained in:
parent
d9f5b2f50f
commit
d1285db253
@ -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);
|
nexthop_group_add_sorted(&nhg, &nh);
|
||||||
|
|
||||||
if (nhe) {
|
if (nhe) {
|
||||||
|
Loading…
Reference in New Issue
Block a user