]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix FPM abort for unreach/prohibit routes 7207/head
authorDuncan Eastoe <duncan.eastoe@att.com>
Mon, 28 Sep 2020 11:51:19 +0000 (12:51 +0100)
committerDuncan Eastoe <duncan.eastoe@att.com>
Wed, 30 Sep 2020 09:22:40 +0000 (10:22 +0100)
commit44681e9594dadd5c6d46c9118b2cfd8754b8f524
treec5b034f383dc2c3367a00b7c2d5cb4463993b205
parent47177a94ffad8d8c20970aafe04466685fc54d4e
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>
(cherry picked from commit 94f7786375030e08063cdae5b4577edf26adb456)
zebra/zebra_fpm_netlink.c