Assign px_origin of target node in the third pass
*/
aggregator_find_subtree_prefix(node, &prefix, &pxlen, p->addr_type);
+ ASSERT_DIE(node->selected_bucket == NULL);
+
/* Select bucket with the lowest ID */
node->selected_bucket = aggregator_select_lowest_id_bucket(p, node);
ASSERT_DIE(node->selected_bucket != NULL);
/* The closest ancestor of the IN_FIB node with a non-null bucket is the node itself */
node->ancestor = node;
node->status = IN_FIB;
+ node->px_origin = (node->px_origin == ORIGINAL) ? ORIGINAL : AGGREGATED;
if (node->child[0])
{