From 08c4c9a30b7ed61be39ddc71aebd69a0fea6a55a Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Sun, 3 Nov 2019 20:25:42 +0100 Subject: Nest: Fix bug in export table For regular channels do not compare src in export table, as we want to keep here only the best (exported) route per network. --- nest/rt-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nest/rt-table.c b/nest/rt-table.c index 0844070d..df7c1634 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2737,7 +2737,7 @@ rte_update_out(struct channel *c, const net_addr *n, rte *new, rte *old0, int re /* Find the old rte */ for (pos = &net->routes; old = *pos; pos = &old->next) - if (old->attrs->src == src) + if ((c->ra_mode != RA_ANY) || (old->attrs->src == src)) { if (new && rte_same(old, new)) { -- cgit v1.2.3