* Second pass of Optimal Route Table Construction (ORTC) algorithm
*/
static void
-second_pass(struct aggregator_proto *p, struct trie_node *node)
+second_pass(struct trie_node *node)
{
assert(node != NULL);
assert(node->potential_buckets_count <= MAX_POTENTIAL_BUCKETS_COUNT);
/* The only potential bucket so far is the assigned bucket of the current node */
assert(BIT32R_TEST(node->potential_buckets, node->bucket->id));
- assert(get_bucket_ptr(p, node->bucket->id) == node->bucket);
return;
}
/* Postorder traversal */
if (left)
- second_pass(p, left);
+ second_pass(left);
if (right)
- second_pass(p, right);
+ second_pass(right);
assert(node->bucket != NULL);
times_update(&main_timeloop);
log("==== SECOND PASS ====");
- second_pass(p, p->root);
+ second_pass(p->root);
times_update(&main_timeloop);
log("==== SECOND PASS DONE");