]> git.proxmox.com Git - mirror_frr.git/commit
zebra: fix redistribution of default routes
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 6 Oct 2016 12:45:27 +0000 (09:45 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 18 Oct 2016 12:51:23 +0000 (08:51 -0400)
commit83c6557494a13fb549079eb290f81d4994e28f3f
tree4ee8dcf7421c6718d5400ad340125207c9306aeb
parenta695cc7b8089ca25d277c168e5ceba6955d9daf6
zebra: fix redistribution of default routes

We were always redistributing the default routes (IPv[46]) in
redistribute_update() because the 'client->redist_default' condition
always returns true.

The 'redist_default' member of the 'zserv' structure is a pointer and is
always initialized with vrf_bitmap_init() in the zebra_client_create()
function.

To fix this, use vrf_bitmap_check() instead.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/redistribute.c