Lines Matching refs:pcr
3208 struct pfioc_rule *pcr = pr;
3215 if (!(pcr->action == PF_CHANGE_REMOVE ||
3216 pcr->action == PF_CHANGE_GET_TICKET) &&
3217 pcr->pool_ticket != ticket_pabuf) {
3222 if (pcr->action < PF_CHANGE_ADD_HEAD ||
3223 pcr->action > PF_CHANGE_GET_TICKET) {
3227 pcr->anchor[sizeof (pcr->anchor) - 1] = '\0';
3228 pcr->anchor_call[sizeof (pcr->anchor_call) - 1] = '\0';
3229 ruleset = pf_find_ruleset(pcr->anchor);
3234 rs_num = pf_get_ruleset_number(pcr->rule.action);
3240 if (pcr->action == PF_CHANGE_GET_TICKET) {
3241 pcr->ticket = ++ruleset->rules[rs_num].active.ticket;
3244 if (pcr->ticket !=
3249 if (pcr->rule.return_icmp >> 8 > ICMP_MAXTYPE) {
3255 if (pcr->action != PF_CHANGE_REMOVE) {
3261 pf_rule_copyin(&pcr->rule, newrule, p, minordev);
3328 if (pf_anchor_setup(newrule, ruleset, pcr->anchor_call))
3364 if (pcr->action == PF_CHANGE_ADD_HEAD)
3367 else if (pcr->action == PF_CHANGE_ADD_TAIL)
3373 while ((oldrule != NULL) && (oldrule->nr != pcr->nr))
3383 if (pcr->action == PF_CHANGE_REMOVE) {
3391 else if (pcr->action == PF_CHANGE_ADD_HEAD ||
3392 pcr->action == PF_CHANGE_ADD_BEFORE)