Acked-by: Donald Sharp <[email protected]> On Thu, Dec 24, 2015 at 1:10 PM, Lou Berger <[email protected]> wrote:
> Signed-off-by: Lou Berger <[email protected]> > Signed-off-by: David Lamparter <[email protected]> > --- > zebra/redistribute.c | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > > diff --git a/zebra/redistribute.c b/zebra/redistribute.c > index 5ec8219..57b515e 100644 > --- a/zebra/redistribute.c > +++ b/zebra/redistribute.c > @@ -150,12 +150,18 @@ zebra_redistribute (struct zserv *client, int type, > vrf_id_t vrf_id) > if (table) > for (rn = route_top (table); rn; rn = route_next (rn)) > RNODE_FOREACH_RIB (rn, newrib) > - if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED) > - && newrib->type == type > - && newrib->distance != DISTANCE_INFINITY > - && zebra_check_addr (&rn->p)) > - zsend_route_multipath (ZEBRA_IPV4_ROUTE_ADD, client, &rn->p, > newrib); > - > + { > + if (IS_ZEBRA_DEBUG_EVENT) > + zlog_debug("%s: checking: selected=%d, type=%d, distance=%d, > zebra_check_addr=%d", > + __func__, CHECK_FLAG (newrib->flags, > ZEBRA_FLAG_SELECTED), > + newrib->type, newrib->distance, zebra_check_addr > (&rn->p)); > + if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED) > + && newrib->type == type > + && newrib->distance != DISTANCE_INFINITY > + && zebra_check_addr (&rn->p)) > + zsend_route_multipath (ZEBRA_IPV4_ROUTE_ADD, client, &rn->p, > newrib); > + } > + > #ifdef HAVE_IPV6 > table = zebra_vrf_table (AFI_IP6, SAFI_UNICAST, vrf_id); > if (table) > -- > 2.1.3 > > > _______________________________________________ > Quagga-dev mailing list > [email protected] > https://lists.quagga.net/mailman/listinfo/quagga-dev >
_______________________________________________ Quagga-dev mailing list [email protected] https://lists.quagga.net/mailman/listinfo/quagga-dev
