]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix checking of clients subscribed to receive interface info
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 18 Jan 2019 18:06:00 +0000 (16:06 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 18 Jan 2019 18:06:00 +0000 (16:06 -0200)
commitf20b478ef3d25e153939516a473bb2e80603cbd5
tree019f3bea176957a24c315d658f7a612137ede054
parent70fc94ca1d6063b64449b0971678521c021ac916
zebra: fix checking of clients subscribed to receive interface info

client->ifinfo is a VRF bitmap, hence we need to use
vrf_bitmap_check() to check if a client is subscribed to receive
interface information for a particular VRF. Just checking if
the client->ifinfo value is set will always succeed since it's
a pointer initialized by zserv_client_create(). With this fix,
we'll stop sending interface messages from all VRFs to all clients,
even those that didn't subscribe to it.

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