}
static void
-print_prefixes_helper(const struct trie_node *node, ip_addr *prefix, u32 pxlen, int type)
+print_prefixes_helper(const struct trie_node *node, ip_addr *prefix, u32 pxlen, u32 type)
{
assert(node != NULL);
assert(prefix != NULL);
}
static void
-print_prefixes(const struct trie_node *node, int type)
+print_prefixes(const struct trie_node *node, u32 type)
{
assert(node != NULL);
* Incorporate announcement of new prefix into the trie
*/
static void
-aggregator_process_update(struct aggregator_proto *p, struct aggregator_route *old UNUSED, struct aggregator_route *new)
+aggregator_update_prefix(struct aggregator_proto *p, struct aggregator_route *old UNUSED, struct aggregator_route *new)
{
assert(p != NULL);
assert(new != NULL);
* Incorporate prefix withdrawal to the trie
*/
static void
-aggregator_process_withdrawal(struct aggregator_proto *p, struct aggregator_route *old)
+aggregator_withdraw_prefix(struct aggregator_proto *p, struct aggregator_route *old)
{
assert(p != NULL);
assert(old != NULL);
calculate_trie(p);
}
-static void trie_init(struct aggregator_proto *p);
+static void aggregator_initialize_trie(struct aggregator_proto *p);
static void
aggregate_on_feed_end(struct channel *C)
assert(PREFIX_AGGR == p->aggr_mode);
assert(p->root == NULL);
- trie_init(p);
+ aggregator_initialize_trie(p);
run_aggregation(p);
}
if (p->root)
{
if (old && !new)
- aggregator_process_withdrawal(p, old_route);
+ aggregator_withdraw_prefix(p, old_route);
else
- aggregator_process_update(p, old_route, new_route);
+ aggregator_update_prefix(p, old_route, new_route);
/* Process all route withdrawals which were caused by the update */
aggregator_withdraw_rte(p);
* Initialize hash table and create default route
*/
static void
-trie_init(struct aggregator_proto *p)
+aggregator_initialize_trie(struct aggregator_proto *p)
{
struct network *default_net = NULL;