Commit 08c4c9a3 authored by Ondřej Zajíček's avatar Ondřej Zajíček

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.
parent be7c1aef
......@@ -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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment