summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-11-03 20:25:42 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-11-03 20:25:42 +0100
commit08c4c9a30b7ed61be39ddc71aebd69a0fea6a55a (patch)
tree1322098a5e363553cf904e0e8858f49197ee92a2 /nest/rt-table.c
parentbe7c1aef429092bb90167a7f1b5c33b74a8030c2 (diff)
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.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c2
1 files changed, 1 insertions, 1 deletions
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))
{