Lines Matching refs:pca
4412 struct pfioc_pooladdr *pca = (struct pfioc_pooladdr *)addr; in pfioctl() local
4418 pca->anchor[sizeof(pca->anchor) - 1] = 0; in pfioctl()
4420 if (pca->action < PF_CHANGE_ADD_HEAD || in pfioctl()
4421 pca->action > PF_CHANGE_REMOVE) { in pfioctl()
4425 if (pca->addr.addr.type != PF_ADDR_ADDRMASK && in pfioctl()
4426 pca->addr.addr.type != PF_ADDR_DYNIFTL && in pfioctl()
4427 pca->addr.addr.type != PF_ADDR_TABLE) { in pfioctl()
4431 if (pca->addr.addr.p.dyn != NULL) { in pfioctl()
4436 if (pca->action != PF_CHANGE_REMOVE) { in pfioctl()
4438 if (pca->af == AF_INET) { in pfioctl()
4444 if (pca->af == AF_INET6) { in pfioctl()
4450 bcopy(&pca->addr, newpa, sizeof(struct pf_pooladdr)); in pfioctl()
4457 ruleset = pf_find_kruleset(pca->anchor); in pfioctl()
4461 pool = pf_get_kpool(pca->anchor, pca->ticket, pca->r_action, in pfioctl()
4462 pca->r_num, pca->r_last, 1, 1); in pfioctl()
4466 if (pca->action != PF_CHANGE_REMOVE) { in pfioctl()
4476 pca->af); in pfioctl()
4489 switch (pca->action) { in pfioctl()
4498 for (int i = 0; oldpa && i < pca->nr; i++) in pfioctl()
4505 if (pca->action == PF_CHANGE_REMOVE) { in pfioctl()
4521 else if (pca->action == PF_CHANGE_ADD_HEAD || in pfioctl()
4522 pca->action == PF_CHANGE_ADD_BEFORE) in pfioctl()
4530 PF_ACPY(&pool->counter, &pool->cur->addr.v.a.addr, pca->af); in pfioctl()