Lines Matching defs:rnh
997 void delete_addr(ipf_rdx_head_t *rnh, int item);
998 void dumptree(ipf_rdx_head_t *rnh);
1003 void test_addr(ipf_rdx_head_t *rnh
1185 printroots(rnh)
1186 ipf_rdx_head_t *rnh;
1189 GNAME(&rnh->nodes[0]),
1190 rnh->nodes[0].index, GNAME(rnh->nodes[0].parent),
1191 GNAME(rnh->nodes[0].left), GNAME(rnh->nodes[0].right));
1193 GNAME(&rnh->nodes[1]),
1194 rnh->nodes[1].index, GNAME(rnh->nodes[1].parent),
1195 GNAME(rnh->nodes[1].left), GNAME(rnh->nodes[1].right));
1197 GNAME(&rnh->nodes[2]),
1198 rnh->nodes[2].index, GNAME(rnh->nodes[2].parent),
1199 GNAME(rnh->nodes[2].left), GNAME(rnh->nodes[2].right));
1207 ipf_rdx_head_t *rnh;
1212 rnh = NULL;
1217 ipf_rx_inithead(ctx, &rnh);
1221 add_addr(rnh, i, i);
1222 checktree(rnh);
1224 printroots(rnh);
1225 ipf_rx_walktree(rnh, nodeprinter, NULL);
1228 delete_addr(rnh, i);
1229 printroots(rnh);
1230 ipf_rx_walktree(rnh, nodeprinter, NULL);
1235 add_addr(rnh, i, i); /*forder[i]); */
1236 checktree(rnh);
1238 dumptree(rnh);
1239 ipf_rx_walktree(rnh, nodeprinter, NULL);
1243 test_addr(rnh, i, &af, -1);
1249 test_addr(rnh, i, &af, -1);
1255 delete_addr(rnh, i);
1258 test_addr(rnh, i, &af, 3);
1260 printroots(rnh);
1261 ipf_rx_walktree(rnh, nodeprinter, NULL);
1264 dumptree(rnh);
1267 random_add(rnh);
1268 checktree(rnh);
1269 dumptree(rnh);
1270 ipf_rx_walktree(rnh, nodeprinter, NULL);
1272 random_delete(rnh);
1273 checktree(rnh);
1274 dumptree(rnh);
1276 ipf_rx_walktree(rnh, ipf_rx_freenode, rnh);
1283 dumptree(rnh)
1284 ipf_rdx_head_t *rnh;
1289 printroots(rnh);
1297 test_addr(rnh, pref, addr, limit)
1298 ipf_rdx_head_t *rnh;
1321 rn = ipf_rx_match(rnh, &af);
1329 rn = ipf_rx_match(rnh, addr);
1338 delete_addr(rnh, item)
1339 ipf_rdx_head_t *rnh;
1355 rn = ipf_rx_delete(rnh, &af, &mask);
1358 checktree(rnh);
1362 ipf_rx_walktree(rnh, nodeprinter, NULL);
1363 dumptree(rnh);
1377 checktree(rnh);
1382 add_addr(rnh, n, item)
1383 ipf_rdx_head_t *rnh;
1398 rn = ipf_rx_addroute(rnh, &stp->dst, &stp->mask, stp->nodes);
1403 checktree(rnh);
1470 random_add(rnh)
1471 ipf_rdx_head_t *rnh;
1480 add_addr(rnh, i, order[i]);
1481 checktree(rnh);
1489 random_delete(rnh)
1490 ipf_rdx_head_t *rnh;
1499 delete_addr(rnh, i);
1500 checktree(rnh);