assert(node->bucket != NULL);
create_route_ip4(p, node->bucket, addr);
*count += 1;
+ p->leaves++;
return;
}
{
create_route_ip4(p, node->bucket, addr);
*count += 1;
+ p->internal_nodes++;
}
if (node->child[0])
assert(node->bucket != NULL);
create_route_ip6(p, node->bucket, addr);
*count += 1;
+ p->leaves++;
return;
}
{
create_route_ip6(p, node->bucket, addr);
*count += 1;
+ p->internal_nodes++;
}
if (node->child[0])
log("%d prefixes before aggregation", p->before_count);
log("%d prefixes after aggregation", p->after_count);
+ log("%d internal nodes with bucket", p->internal_nodes);
+ log("%d leaves with bucket", p->leaves);
log("==== AGGREGATION DONE ====");
}
p->root = NULL;
p->before_count = 0;
p->after_count = 0;
+ p->internal_nodes = 0;
+ p->leaves = 0;
if (p->first_run)
p->first_run = 0;
p->before_count = 0;
p->after_count = 0;
+ p->internal_nodes = 0;
+ p->leaves = 0;
}
static int