mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:37:21 +00:00
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 <sworley@cumulusnetworks.com>
This commit is contained in:
parent
8e76637969
commit
044e54d1eb
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user