mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Add logs and declarations, remove unused code
This commit is contained in:
parent
de8105a44b
commit
419bdde415
@ -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 ====");
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user