]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: redistribute srcdest routes to the client daemons
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 22 Aug 2017 13:57:55 +0000 (10:57 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 22 Aug 2017 13:57:55 +0000 (10:57 -0300)
Somehow we missed these bits from the original srcdest patchset.

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

index ed27dc3e8344c11bfaa74419b28f5f93df3bdf8e..410ddcd4a00c783cb13726ef364d7a3af12f992c 100644 (file)
@@ -114,7 +114,7 @@ static void zebra_redistribute(struct zserv *client, int type, u_short instance,
        if (!table)
                return;
 
-       for (rn = route_top(table); rn; rn = route_next(rn))
+       for (rn = route_top(table); rn; rn = srcdest_route_next(rn))
                RNODE_FOREACH_RE(rn, newre)
                {
                        struct prefix *dst_p, *src_p;