From: Ondrej Zajicek Date: Thu, 29 May 2025 15:34:35 +0000 (+0200) Subject: Nest: Fix route update after preference change X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2F248-bgp-reject-as-sets-by-default;p=thirdparty%2Fbird.git Nest: Fix route update after preference change The route preference was ignored in route comparison, therefore if a protocol changed it and then reloaded routes, they were ignored and routes with the old prefernce were kept. The bug was introduced 5 years ago, when preference was moved from struct rte to struct rta. --- diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 7c49af174..e10e1ecbf 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -1182,6 +1182,7 @@ rta_same(rta *x, rta *y) return (x->source == y->source && x->scope == y->scope && x->dest == y->dest && + x->pref == y->pref && x->igp_metric == y->igp_metric && ipa_equal(x->from, y->from) && x->hostentry == y->hostentry &&