Lines Matching full:pcr
3637 struct pfioc_rule *pcr = (struct pfioc_rule *)addr;
3645 pcr->anchor[sizeof(pcr->anchor) - 1] = 0;
3647 if (pcr->action < PF_CHANGE_ADD_HEAD ||
3648 pcr->action > PF_CHANGE_GET_TICKET) {
3652 if (pcr->rule.return_icmp >> 8 > ICMP_MAXTYPE) {
3657 if (pcr->action != PF_CHANGE_REMOVE) {
3659 error = pf_rule_to_krule(&pcr->rule, newrule);
3693 if (!(pcr->action == PF_CHANGE_REMOVE ||
3694 pcr->action == PF_CHANGE_GET_TICKET) &&
3695 pcr->pool_ticket != V_ticket_pabuf)
3698 ruleset = pf_find_kruleset(pcr->anchor);
3702 rs_num = pf_get_ruleset_number(pcr->rule.action);
3722 if (pcr->action == PF_CHANGE_GET_TICKET) {
3723 pcr->ticket = ++ruleset->rules[rs_num].active.ticket;
3725 } else if (pcr->ticket !=
3729 if (pcr->action != PF_CHANGE_REMOVE) {
3772 if (pf_kanchor_setup(newrule, ruleset, pcr->anchor_call))
3821 if (pcr->action == PF_CHANGE_ADD_HEAD)
3824 else if (pcr->action == PF_CHANGE_ADD_TAIL)
3830 while ((oldrule != NULL) && (oldrule->nr != pcr->nr))
3842 if (pcr->action == PF_CHANGE_REMOVE) {
3863 else if (pcr->action == PF_CHANGE_ADD_HEAD ||
3864 pcr->action == PF_CHANGE_ADD_BEFORE)