Lines Matching defs:ipo
166 ip_pool_t *ipo;
178 ipo = ipf_pool_exists(0, "0");
185 ipf_pool_insert_node(ipo, &node);
190 ipf_pool_insert_node(ipo, &node);
195 ipf_pool_insert_node(ipo, &node);
200 ipf_pool_insert_node(ipo, &node);
205 ipf_pool_insert_node(ipo, &node);
210 ipf_pool_insert_node(ipo, &node);
212 treeprint(ipo);
216 ipf_pool_search(ipo, 4, &ip, 1));
220 ipf_pool_search(ipo, 4, &ip, 1));
224 ipf_pool_search(ipo, 4, &ip, 1));
228 ipf_pool_search(ipo, 4, &ip, 1));
232 ipf_pool_search(ipo, 4, &ip, 1));
236 ipf_pool_search(ipo, 4, &ip, 1));
240 ipf_pool_search(ipo, 4, &ip, 1));
244 ipf_pool_search(ipo, 4, &ip, 1));
248 ipf_pool_search(ipo, 4, &ip, 1));
251 treeprint(ipo);
261 treeprint(ipo)
262 ip_pool_t *ipo;
266 for (c = ipo->ipo_list; c != NULL; c = c->ipn_next)
719 /* ipo(I) - pointer to the pool getting the new node. */
727 ipf_pool_findeq(ipf_pool_softc_t *softp, ip_pool_t *ipo, addrfamily_t *addr,
732 n = ipo->ipo_head->lookup(ipo->ipo_head, addr, mask);
756 ip_pool_t *ipo;
759 ipo = tptr;
760 if (ipo == NULL)
785 rn = ipo->ipo_head->matchaddr(ipo->ipo_head, &v);
789 ipo->ipo_hits++;
804 /* ipo(I) - pointer to the pool getting the new node. */
808 /* Add another node to the pool given by ipo. The three parameters passed */
813 ip_pool_t *ipo, struct ip_pool_node *node)
838 x->ipn_owner = ipo;
882 rn = ipo->ipo_head->addaddr(ipo->ipo_head, &x->ipn_addr, &x->ipn_mask,
895 x->ipn_pnext = ipo->ipo_tail;
896 *ipo->ipo_tail = x;
897 ipo->ipo_tail = &x->ipn_next;
1003 /* ipo(I) - pointer to the pool to remove the node from. */
1007 /* Remove a node from the pool given by ipo. */
1011 ip_pool_t *ipo, ip_pool_node_t *ipe)
1015 if (ipo->ipo_tail == &ipe->ipn_next)
1016 ipo->ipo_tail = ipe->ipn_pnext;
1028 ptr = ipo->ipo_head->deladdr(ipo->ipo_head, &ipe->ipn_addr,
1061 ip_pool_t *ipo;
1063 ipo = ipf_pool_exists(softp, unit, name);
1064 if (ipo == NULL) {
1069 if (ipo->ipo_ref != 1) {
1070 ipf_pool_clearnodes(softc, softp, ipo);
1071 ipo->ipo_flags |= IPOOL_DELETE;
1075 ipf_pool_free(softc, softp, ipo);
1122 /* ipo(I) - pointer to pool structure */
1134 ipf_pool_free(ipf_main_softc_t *softc, ipf_pool_softc_t *softp, ip_pool_t *ipo)
1137 ipf_pool_clearnodes(softc, softp, ipo);
1139 if (ipo->ipo_next != NULL)
1140 ipo->ipo_next->ipo_pnext = ipo->ipo_pnext;
1141 *ipo->ipo_pnext = ipo->ipo_next;
1142 ipf_rx_freehead(ipo->ipo_head);
1143 KFREE(ipo);
1154 /* ipo(I) - pointer to pool structure */
1161 ip_pool_t *ipo)
1165 for (next = &ipo->ipo_list; (n = *next) != NULL; )
1166 ipf_pool_remove_node(softc, softp, ipo, n);
1168 ipo->ipo_list = NULL;
1186 ip_pool_t *ipo = pool;
1188 ipo->ipo_ref--;
1190 if (ipo->ipo_ref == 0)
1191 ipf_pool_free(softc, arg, ipo);
1193 else if ((ipo->ipo_ref == 1) && (ipo->ipo_flags & IPOOL_DELETE))
1194 ipf_pool_destroy(softc, arg, ipo->ipo_unit, ipo->ipo_name);
1238 ip_pool_t *ipo, zp, *nextipo;
1245 ipo = NULL;
1253 ipo = token->ipt_data;
1254 if (ipo == NULL) {
1257 nextipo = ipo->ipo_next;
1274 ipo = ipf_pool_exists(arg, ilp->ili_unit,
1276 if (ipo == NULL) {
1280 nextnode = ipo->ipo_list;
1281 ipo = NULL;
1317 if (ipo != NULL) {
1319 ipf_pool_deref(softc, softp, ipo);