Lines Matching defs:pcr
1648 struct pfioc_rule *pcr = (struct pfioc_rule *)addr;
1654 if (!(pcr->action == PF_CHANGE_REMOVE ||
1655 pcr->action == PF_CHANGE_GET_TICKET) &&
1656 pcr->pool_ticket != ticket_pabuf) {
1661 if (pcr->action < PF_CHANGE_ADD_HEAD ||
1662 pcr->action > PF_CHANGE_GET_TICKET) {
1666 ruleset = pf_find_ruleset(pcr->anchor);
1671 rs_num = pf_get_ruleset_number(pcr->rule.action);
1677 if (pcr->action == PF_CHANGE_GET_TICKET) {
1678 pcr->ticket = ++ruleset->rules[rs_num].active.ticket;
1681 if (pcr->ticket !=
1686 if (pcr->rule.return_icmp >> 8 > ICMP_MAXTYPE) {
1692 if (pcr->action != PF_CHANGE_REMOVE) {
1698 bcopy(&pcr->rule, newrule, sizeof(struct pf_rule));
1782 if (pf_anchor_setup(newrule, ruleset, pcr->anchor_call))
1819 if (pcr->action == PF_CHANGE_ADD_HEAD)
1822 else if (pcr->action == PF_CHANGE_ADD_TAIL)
1828 while ((oldrule != NULL) && (oldrule->nr != pcr->nr))
1838 if (pcr->action == PF_CHANGE_REMOVE) {
1846 else if (pcr->action == PF_CHANGE_ADD_HEAD ||
1847 pcr->action == PF_CHANGE_ADD_BEFORE)