mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-19 22:33:56 +00:00
Merge pull request #7192 from deastoe/zebra-fpm-blackhole-abort
zebra: fix FPM abort for unreach/prohibit routes
This commit is contained in:
commit
dbbae374d4
@ -335,10 +335,18 @@ static int netlink_route_info_fill(struct netlink_route_info *ri, int cmd,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If there is no useful nexthop then return. */
|
if (ri->num_nhs == 0) {
|
||||||
if (ri->rtm_type != RTN_BLACKHOLE && ri->num_nhs == 0) {
|
switch (ri->rtm_type) {
|
||||||
zfpm_debug("netlink_encode_route(): No useful nexthop.");
|
case RTN_PROHIBIT:
|
||||||
return 0;
|
case RTN_UNREACHABLE:
|
||||||
|
case RTN_BLACKHOLE:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
/* If there is no useful nexthop then return. */
|
||||||
|
zfpm_debug(
|
||||||
|
"netlink_encode_route(): No useful nexthop.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user