]> git.proxmox.com Git - mirror_frr.git/commit
zebra: stop sending invalid nexthops to clients
authorDon Slice <dslice@cumulusnetworks.com>
Mon, 15 Apr 2019 18:27:00 +0000 (18:27 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Fri, 19 Apr 2019 16:56:07 +0000 (16:56 +0000)
commite47c4d3cfe7bf7c97f4b10fc6347f484093f14bd
tree014ce7ef567c126d8bdee5e11392de7b6e21c7f4
parentfd3938ac3dd36b4c09ec5023769dd4cfc6ee0fc6
zebra: stop sending invalid nexthops to clients

Found that zebra_rnh_apply_nht_rmap would set the
NEXTHOP_FLAG_ACTIVE if not blocked by the route-map, even
if the flag was not active prior to the check.  This fix
changes the flag used to denote the nexthop is filtered so
that proper active state can be retained. Additionally,
found two cases where we would send invalid nexthops via
send_client, which would also cause this crash.  All three
fixed in this commit.

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
lib/nexthop.h
zebra/zebra_rnh.c