From: Ondrej Zajicek (work) Date: Thu, 31 Oct 2019 00:17:34 +0000 (+0100) Subject: Nest: Fix bug in export table X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee147fc1a59635b04bf5679d28ca544460dac588;p=thirdparty%2Fbird.git 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. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index d9e4be8ff..5d4a0ef26 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2604,7 +2604,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)) {