Lines Matching refs:ipo

118 	ip_pool_t *ipo;  local
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) in treeprint() argument
215 ip_pool_t *ipo; in treeprint()
219 for (c = ipo->ipo_list; c != NULL; c = c->ipn_next)
350 ip_pool_node_t *ip_pool_findeq(ipo, addr, mask) in ip_pool_findeq() argument
351 ip_pool_t *ipo; in ip_pool_findeq()
358 n = ipo->ipo_head->rnh_lookup(addr, mask, ipo->ipo_head);
386 ip_pool_t *ipo; local
389 ipo = tptr;
390 if (ipo == NULL)
412 rn = ipo->ipo_head->rnh_matchaddr(&v, ipo->ipo_head);
416 ipo->ipo_hits++;
438 int ip_pool_insert(ipo, addr, mask, info, ifs) in ip_pool_insert() argument
439 ip_pool_t *ipo; in ip_pool_insert()
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;
578 int ip_pool_remove(ipo, ipe, ifs) in ip_pool_remove() argument
579 ip_pool_t *ipo; in ip_pool_remove()
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; local
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);
696 void ip_pool_free(ipo, ifs) in ip_pool_free() argument
697 ip_pool_t *ipo; in ip_pool_free()
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);
735 void ip_pool_deref(ipo, ifs) in ip_pool_deref() argument
736 ip_pool_t *ipo; in ip_pool_deref()
742 ipo->ipo_ref--;
743 if (ipo->ipo_ref == 0)
744 ip_pool_free(ipo, ifs);
769 ip_pool_t *ipo, zp, *nextipo; local
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);