Lines Matching refs:new_node
304 isc_radix_node_t *node, *new_node, *parent, *glue = NULL;
492 new_node = isc_mem_get(radix->mctx, sizeof(isc_radix_node_t));
493 if (new_node == NULL)
498 isc_mem_put(radix->mctx, new_node,
503 new_node->bit = bitlen;
504 new_node->prefix = NULL;
505 result = _ref_prefix(radix->mctx, &new_node->prefix, prefix);
507 isc_mem_put(radix->mctx, new_node, sizeof(isc_radix_node_t));
513 new_node->parent = NULL;
514 new_node->l = new_node->r = NULL;
516 new_node->node_num[i] = -1;
517 new_node->data[i] = NULL;
526 new_node->node_num[i] =
528 new_node->data[i] = source->data[i];
536 new_node->node_num[i] = next;
538 new_node->node_num[ISC_RADIX_OFF(prefix)] = next;
540 memset(new_node->data, 0, sizeof(new_node->data));
545 new_node->parent = node;
550 node->r = new_node;
553 node->l = new_node;
555 *target = new_node;
563 new_node->r = node;
565 new_node->l = node;
567 new_node->parent = node->parent;
570 radix->head = new_node;
572 node->parent->r = new_node;
574 node->parent->l = new_node;
576 node->parent = new_node;
589 glue->r = new_node;
593 glue->l = new_node;
595 new_node->parent = glue;
608 *target = new_node;