mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10: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,11 +338,19 @@ 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) {
|
if (ri->num_nhs == 0) {
|
||||||
zfpm_debug("netlink_encode_route(): No useful nexthop.");
|
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 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user