Lines Matching refs:parent
118 dns_rpz_cidr_node_t *parent;
367 cnode = cnode->parent;
967 * Handle wildcards by putting only the parent into the
1093 dns_rpz_cidr_node_t *cur, *parent, *child, *new_parent, *sibling;
1103 parent = NULL;
1110 * or add the target as a child of the current parent.
1117 if (parent == NULL)
1120 parent->child[cur_num] = child;
1121 child->parent = parent;
1185 * Add the target as the current node's parent.
1193 new_parent->parent = parent;
1194 if (parent == NULL)
1197 parent->child[cur_num] = new_parent;
1200 cur->parent = new_parent;
1226 parent = cur;
1236 * Insert a fork of a parent above the current node and
1250 new_parent->parent = parent;
1251 if (parent == NULL)
1254 parent->child[cur_num] = new_parent;
1258 cur->parent = new_parent;
1259 sibling->parent = new_parent;
1455 dns_rpz_cidr_node_t *cur, *child, *parent;
1472 parent = cur->parent;
1473 if (parent == NULL)
1476 parent->child[parent->child[1] == cur] = NULL;
1478 cur = parent;
1815 parent_cnode = cnode->parent;
1951 dns_rpz_cidr_node_t *tgt, *parent, *child;
2010 * Replace the pointer to this node in the parent with
2013 parent = tgt->parent;
2014 if (parent == NULL) {
2017 parent->child[parent->child[1] == tgt] = child;
2020 * If the child exists fix up its parent pointer.
2023 child->parent = parent;
2026 tgt = parent;
2305 nmnode = nmnode->parent;
2316 nmnode = nmnode->parent;