mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 05:04:18 +00:00
Merge pull request #7208 from deastoe/zebra-fpm-blackhole-abort_7.4
[7.4] zebra: fix FPM abort for blackhole/unreach/prohibit routes
This commit is contained in:
commit
c2213a2d7d
@ -338,10 +338,18 @@ static int netlink_route_info_fill(netlink_route_info_t *ri, int cmd,
|
||||
}
|
||||
}
|
||||
|
||||
/* If there is no useful nexthop then return. */
|
||||
if (ri->num_nhs == 0) {
|
||||
zfpm_debug("netlink_encode_route(): No useful nexthop.");
|
||||
return 0;
|
||||
switch (ri->rtm_type) {
|
||||
case RTN_PROHIBIT:
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user