From: Igor Putovny Date: Wed, 11 Dec 2024 15:42:28 +0000 (+0100) Subject: Set px_origin where it makes sense X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67ae31c080e4188dd6795a7ad541310effeb9d3a;p=thirdparty%2Fbird.git Set px_origin where it makes sense --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index cc0a412c7..c86793e9a 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -336,6 +336,7 @@ trie_insert_prefix_ip4(struct trie_node * const root, const struct net_addr_ip4 *new = (struct trie_node) { .parent = node, .status = NON_FIB, + .px_origin = FILLER, .depth = node->depth + 1, }; @@ -375,6 +376,7 @@ trie_insert_prefix_ip6(struct trie_node * const root, const struct net_addr_ip6 *new = (struct trie_node) { .parent = node, .status = NON_FIB, + .px_origin = FILLER, .depth = node->depth + 1, }; @@ -600,6 +602,7 @@ third_pass_helper(struct aggregator_proto *p, struct trie_node *node) struct trie_node imaginary_node = { .parent = node, .original_bucket = node->original_bucket, + .px_origin = AGGREGATED, .depth = node->depth + 1, }; diff --git a/proto/aggregator/aggregator.h b/proto/aggregator/aggregator.h index 950fab6c9..a42d4e998 100644 --- a/proto/aggregator/aggregator.h +++ b/proto/aggregator/aggregator.h @@ -118,7 +118,7 @@ enum fib_status { }; enum prefix_origin { - SOURCELESS = 0, + FILLER = 0, ORIGINAL = 1, AGGREGATED = 2, };