From 2c439a68e65be31faff5cc812f726f5b775a5495 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Thu, 23 Jan 2025 17:35:11 +0100 Subject: [PATCH] Original prefix always keeps its status --- proto/aggregator/aggregator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.47.2