Lines Matching defs:pca
2298 struct pfioc_pooladdr *pca = (struct pfioc_pooladdr *)addr;
2304 if (pca->action < PF_CHANGE_ADD_HEAD ||
2305 pca->action > PF_CHANGE_REMOVE) {
2309 if (pca->addr.addr.type != PF_ADDR_ADDRMASK &&
2310 pca->addr.addr.type != PF_ADDR_DYNIFTL &&
2311 pca->addr.addr.type != PF_ADDR_TABLE) {
2316 if (pca->action != PF_CHANGE_REMOVE) {
2318 if (pca->af == AF_INET) {
2324 if (pca->af == AF_INET6) {
2330 bcopy(&pca->addr, newpa, sizeof(struct pf_pooladdr));
2338 ruleset = pf_find_ruleset(pca->anchor);
2342 pool = pf_get_pool(pca->anchor, pca->ticket, pca->r_action,
2343 pca->r_num, pca->r_last, 1, 1);
2347 if (pca->action != PF_CHANGE_REMOVE) {
2357 pca->af);
2370 switch (pca->action) {
2379 for (int i = 0; oldpa && i < pca->nr; i++)
2386 if (pca->action == PF_CHANGE_REMOVE) {
2402 else if (pca->action == PF_CHANGE_ADD_HEAD ||
2403 pca->action == PF_CHANGE_ADD_BEFORE)
2411 PF_ACPY(&pool->counter, &pool->cur->addr.v.a.addr, pca->af);