0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-19 11:55:21 +00:00

Add logs and declarations, remove unused code

This commit is contained in:
Igor Putovny 2024-05-09 17:29:03 +02:00
parent de8105a44b
commit 419bdde415
2 changed files with 5 additions and 7 deletions

View File

@ -882,7 +882,6 @@ collect_prefixes(struct aggregator_proto *p)
else
bug("Invalid NET type");
log("%d prefixes after aggregation", count);
p->after_count = count;
}
@ -954,6 +953,9 @@ run_aggregation(struct channel *C)
construct_trie(p);
calculate_trie(p);
collect_prefixes(p);
log("%d prefixes before aggregation", p->before_count);
log("%d prefixes after aggregation", p->after_count);
log("==== AGGREGATION DONE ====");
}

View File

@ -70,7 +70,8 @@ struct aggregator_proto {
uint addr_type;
slab *trie_slab;
struct trie_node *root;
struct event reload_trie;
int before_count;
int after_count;
};
enum aggr_item_type {
@ -102,9 +103,4 @@ struct trie_node {
int depth;
};
struct prefix_bucket {
net_addr_ip4 trie_prefix;
struct aggregator_bucket *bucket;
};
#endif