Lines Matching refs:new_current
372 dns_rbtnode_t **root, *parent, *child, *current, *new_current;
396 result = create_node(rbt->mctx, add_name, &new_current);
399 new_current->is_root = 1;
400 rbt->root = new_current;
401 *nodep = new_current;
402 hash_node(rbt, new_current, name);
530 &new_current);
539 new_current->is_root = current->is_root;
540 new_current->nsec3 = current->nsec3;
541 PARENT(new_current) = PARENT(current);
542 LEFT(new_current) = LEFT(current);
543 RIGHT(new_current) = RIGHT(current);
544 COLOR(new_current) = COLOR(current);
551 LEFT(parent) = new_current;
553 RIGHT(parent) = new_current;
555 if (LEFT(new_current) != NULL)
556 PARENT(LEFT(new_current)) =
557 new_current;
558 if (RIGHT(new_current) != NULL)
559 PARENT(RIGHT(new_current)) =
560 new_current;
562 *root = new_current;
573 PARENT(current) = new_current;
574 DOWN(new_current) = current;
575 root = &DOWN(new_current);
577 ADD_LEVEL(&chain, new_current);
589 hash_node(rbt, new_current, new_name);
598 *nodep = new_current;
630 result = create_node(rbt->mctx, add_name, &new_current);
633 dns_rbt_addonlevel(new_current, current, order, root);
635 *nodep = new_current;
636 hash_node(rbt, new_current, name);