{
if (p->root)
{
- aggregator_recalculate(p, old_route, new_route);
+ aggregator_recompute(p, old_route, new_route);
/* Process route withdrawals triggered by recalculation */
aggregator_withdraw_rte(p);
};
void aggregator_aggregate(struct aggregator_proto *p);
-void aggregator_recalculate(struct aggregator_proto *p, struct aggregator_route *old, struct aggregator_route *new);
+void aggregator_recompute(struct aggregator_proto *p, struct aggregator_route *old, struct aggregator_route *new);
void aggregator_bucket_update(struct aggregator_proto *p, struct aggregator_bucket *bucket, struct network *net);
struct trie_node *aggregator_create_new_node(struct slab *trie_slab);
* Run Optimal Routing Table Constructor (ORTC) algorithm
*/
static void
-aggregator_calculate_trie(struct aggregator_proto *p)
+aggregator_compute_trie(struct aggregator_proto *p)
{
ASSERT_DIE(p->addr_type == NET_IP4 || p->addr_type == NET_IP6);
ASSERT_DIE(p->root != NULL);
aggregator_construct_trie(p);
- aggregator_calculate_trie(p);
+ aggregator_compute_trie(p);
}
/*
* Incorporate prefix change into the trie and reaggregate
*/
void
-aggregator_recalculate(struct aggregator_proto *p, struct aggregator_route *old, struct aggregator_route *new)
+aggregator_recompute(struct aggregator_proto *p, struct aggregator_route *old, struct aggregator_route *new)
{
struct trie_node *updated_node = NULL;