]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix FPM abort for unreach/prohibit routes 7192/head
authorDuncan Eastoe <duncan.eastoe@att.com>
Mon, 28 Sep 2020 11:51:19 +0000 (12:51 +0100)
committerDuncan Eastoe <duncan.eastoe@att.com>
Tue, 29 Sep 2020 11:59:30 +0000 (12:59 +0100)
commit94f7786375030e08063cdae5b4577edf26adb456
tree08d20b7e2457f75b6a6d903cbf7d4011fdf1a141
parent1e5b8daf37e2ce4e56015d834988e8c7df9c6f11
zebra: fix FPM abort for unreach/prohibit routes

b0e9567ed162da708f8d0b3a3caf87cd03b62e96 fixed an issue whereby
zebra would abort while building an update for a blackhole route.

The same issue, `assert(data_len)` failing in
`zfpm_build_route_updates()`, can be observed when building updates
for unreachable and prohibit routes.

To address this `netlink_route_info_fill()` is updated to not
indicate failure, due to lack of nexthops, for any blackhole routes.

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
zebra/zebra_fpm_netlink.c