From: Igor Putovny Date: Thu, 23 Jan 2025 16:35:11 +0000 (+0100) Subject: Original prefix always keeps its status X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c439a68e65be31faff5cc812f726f5b775a5495;p=thirdparty%2Fbird.git Original prefix always keeps its status --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index 7c8b17e64..3ea6a7f87 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -630,6 +630,9 @@ third_pass_helper(struct aggregator_proto *p, struct trie_node *node) /* Selected bucket is NULL as it has never been assigned */ node->selected_bucket = NULL; node->status = NON_FIB; + + /* Original prefix stays original */ + node->px_origin = ORIGINAL == node->px_origin ? ORIGINAL : FILLER; } else { @@ -639,7 +642,7 @@ third_pass_helper(struct aggregator_proto *p, struct trie_node *node) node->selected_bucket = choose_lowest_id_bucket(p, node); node->status = IN_FIB; - /* If prefix was original it stays original */ + /* Original prefix stays original */ node->px_origin = ORIGINAL == node->px_origin ? ORIGINAL : AGGREGATED; assert(node->selected_bucket != NULL); }