Lines Matching defs:ipo

118 	ip_pool_t *ipo;
132 ipo = ip_pool_find(0, "0", ifs);
136 ip_pool_insert(ipo, &a, &b, 1, ifs);
137 ip_pool_insert(ipo, &a, &b, 1, ifs);
141 ip_pool_insert(ipo, &a, &b, 0, ifs);
142 ip_pool_insert(ipo, &a, &b, 0, ifs);
146 ip_pool_insert(ipo, &a, &b, 1, ifs);
147 ip_pool_insert(ipo, &a, &b, 1, ifs);
151 ip_pool_insert(ipo, &a, &b, 0, ifs);
152 ip_pool_insert(ipo, &a, &b, 0, ifs);
156 ip_pool_insert(ipo, &a, &b, 1, ifs);
157 ip_pool_insert(ipo, &a, &b, 1, ifs);
161 ip_pool_insert(ipo, &a, &b, 1, ifs);
162 ip_pool_insert(ipo, &a, &b, 1, ifs);
164 treeprint(ipo);
169 ip_pool_search(ipo, 4, &ip, &fin, ifs));
173 ip_pool_search(ipo, 4, &ip, &fin, ifs));
177 ip_pool_search(ipo, 4, &ip, &fin, ifs));
181 ip_pool_search(ipo, 4, &ip, &fin, ifs));
185 ip_pool_search(ipo, 4, &ip, &fin, ifs));
189 ip_pool_search(ipo, 4, &ip, &fin, ifs));
193 ip_pool_search(ipo, 4, &ip, &fin, ifs));
197 ip_pool_search(ipo, 4, &ip, &fin, ifs));
201 ip_pool_search(ipo, 4, &ip, &fin, ifs));
204 treeprint(ipo);
214 treeprint(ipo)
215 ip_pool_t *ipo;
219 for (c = ipo->ipo_list; c != NULL; c = c->ipn_next)
322 /* Parameters: ipo(I) - pointer to the pool getting the new node. */
344 /* Parameters: ipo(I) - pointer to the pool getting the new node. */
350 ip_pool_node_t *ip_pool_findeq(ipo, addr, mask)
351 ip_pool_t *ipo;
358 n = ipo->ipo_head->rnh_lookup(addr, mask, ipo->ipo_head);
386 ip_pool_t *ipo;
389 ipo = tptr;
390 if (ipo == NULL)
412 rn = ipo->ipo_head->rnh_matchaddr(&v, ipo->ipo_head);
416 ipo->ipo_hits++;
429 /* Parameters: ipo(I) - pointer to the pool getting the new node. */
435 /* Add another node to the pool given by ipo. The three parameters passed */
438 int ip_pool_insert(ipo, addr, mask, info, ifs)
439 ip_pool_t *ipo;
457 (void)strncpy(x->ipn_name, ipo->ipo_name, sizeof(x->ipn_name));
464 rn = ipo->ipo_head->rnh_addaddr(&x->ipn_addr, &x->ipn_mask,
465 ipo->ipo_head, x->ipn_nodes);
476 x->ipn_next = ipo->ipo_list;
477 x->ipn_pnext = &ipo->ipo_list;
478 if (ipo->ipo_list != NULL)
479 ipo->ipo_list->ipn_pnext = &x->ipn_next;
480 ipo->ipo_list = x;
571 /* Parameters: ipo(I) - pointer to the pool to remove the node from. */
575 /* Add another node to the pool given by ipo. The three parameters passed */
578 int ip_pool_remove(ipo, ipe, ifs)
579 ip_pool_t *ipo;
587 for (ipp = &ipo->ipo_list; (n = *ipp) != NULL; ipp = &n->ipn_next) {
599 ipo->ipo_head->rnh_deladdr(&n->ipn_addr, &n->ipn_mask,
600 ipo->ipo_head);
626 ip_pool_t *ipo;
628 ipo = ip_pool_find(op->iplo_unit, op->iplo_name, ifs);
629 if (ipo == NULL)
632 if (ipo->ipo_ref != 1)
635 ip_pool_free(ipo, ifs);
685 /* Parameters: ipo(I) - pointer to pool structure */
696 void ip_pool_free(ipo, ifs)
697 ip_pool_t *ipo;
702 while ((n = ipo->ipo_list) != NULL) {
703 ipo->ipo_head->rnh_deladdr(&n->ipn_addr, &n->ipn_mask,
704 ipo->ipo_head);
715 ipo->ipo_list = NULL;
716 if (ipo->ipo_next != NULL)
717 ipo->ipo_next->ipo_pnext = ipo->ipo_pnext;
718 *ipo->ipo_pnext = ipo->ipo_next;
719 rn_freehead(ipo->ipo_head);
720 KFREE(ipo);
729 /* Parameters: ipo(I) - pointer to pool structure */
735 void ip_pool_deref(ipo, ifs)
736 ip_pool_t *ipo;
742 ipo->ipo_ref--;
743 if (ipo->ipo_ref == 0)
744 ip_pool_free(ipo, ifs);
769 ip_pool_t *ipo, zp, *nextipo;
775 ipo = NULL;
789 ipo = token->ipt_data;
790 if (ipo == NULL) {
793 nextipo = ipo->ipo_next;
808 ipo = ip_pool_find(ilp->ili_unit, ilp->ili_name, ifs);
809 if (ipo == NULL)
812 nextnode = ipo->ipo_list;
813 ipo = NULL;
853 if (ipo != NULL) {
855 ip_pool_deref(ipo, ifs);