Lines Matching defs:ioe

3401 		struct pfioc_trans_e	*ioe;
3405 if (io->esize != sizeof(*ioe)) {
3412 ioe = malloc(sizeof(*ioe), M_TEMP, M_WAITOK);
3419 PF_COPYIN(io->array+i, ioe, sizeof(*ioe), error);
3422 if (copyin(io->array+i, ioe, sizeof(*ioe))) {
3425 free(ioe, M_TEMP);
3429 switch (ioe->rs_num) {
3432 if (ioe->anchor[0]) {
3434 free(ioe, M_TEMP);
3438 if ((error = pf_begin_altq(&ioe->ticket))) {
3440 free(ioe, M_TEMP);
3447 strlcpy(table->pfrt_anchor, ioe->anchor,
3450 &ioe->ticket, NULL, 0))) {
3452 free(ioe, M_TEMP);
3457 if ((error = pf_begin_rules(&ioe->ticket,
3458 ioe->rs_num, ioe->anchor))) {
3460 free(ioe, M_TEMP);
3466 PF_COPYOUT(ioe, io->array+i, sizeof(io->array[i]),
3470 if (copyout(ioe, io->array+i, sizeof(io->array[i]))) {
3473 free(ioe, M_TEMP);
3479 free(ioe, M_TEMP);
3485 struct pfioc_trans_e *ioe;
3489 if (io->esize != sizeof(*ioe)) {
3496 ioe = malloc(sizeof(*ioe), M_TEMP, M_WAITOK);
3503 PF_COPYIN(io->array+i, ioe, sizeof(*ioe), error);
3506 if (copyin(io->array+i, ioe, sizeof(*ioe))) {
3509 free(ioe, M_TEMP);
3513 switch (ioe->rs_num) {
3516 if (ioe->anchor[0]) {
3518 free(ioe, M_TEMP);
3522 if ((error = pf_rollback_altq(ioe->ticket))) {
3524 free(ioe, M_TEMP);
3531 strlcpy(table->pfrt_anchor, ioe->anchor,
3534 ioe->ticket, NULL, 0))) {
3536 free(ioe, M_TEMP);
3541 if ((error = pf_rollback_rules(ioe->ticket,
3542 ioe->rs_num, ioe->anchor))) {
3544 free(ioe, M_TEMP);
3551 free(ioe, M_TEMP);
3557 struct pfioc_trans_e *ioe;
3562 if (io->esize != sizeof(*ioe)) {
3569 ioe = malloc(sizeof(*ioe), M_TEMP, M_WAITOK);
3577 PF_COPYIN(io->array+i, ioe, sizeof(*ioe), error);
3580 if (copyin(io->array+i, ioe, sizeof(*ioe))) {
3583 free(ioe, M_TEMP);
3587 switch (ioe->rs_num) {
3590 if (ioe->anchor[0]) {
3592 free(ioe, M_TEMP);
3597 if (!V_altqs_inactive_open || ioe->ticket !=
3600 if (!altqs_inactive_open || ioe->ticket !=
3604 free(ioe, M_TEMP);
3611 rs = pf_find_ruleset(ioe->anchor);
3612 if (rs == NULL || !rs->topen || ioe->ticket !=
3615 free(ioe, M_TEMP);
3621 if (ioe->rs_num < 0 || ioe->rs_num >=
3624 free(ioe, M_TEMP);
3628 rs = pf_find_ruleset(ioe->anchor);
3630 !rs->rules[ioe->rs_num].inactive.open ||
3631 rs->rules[ioe->rs_num].inactive.ticket !=
3632 ioe->ticket) {
3634 free(ioe, M_TEMP);
3644 PF_COPYIN(io->array+i, ioe, sizeof(*ioe), error);
3647 if (copyin(io->array+i, ioe, sizeof(*ioe))) {
3650 free(ioe, M_TEMP);
3654 switch (ioe->rs_num) {
3657 if ((error = pf_commit_altq(ioe->ticket))) {
3659 free(ioe, M_TEMP);
3666 strlcpy(table->pfrt_anchor, ioe->anchor,
3668 if ((error = pfr_ina_commit(table, ioe->ticket,
3671 free(ioe, M_TEMP);
3676 if ((error = pf_commit_rules(ioe->ticket,
3677 ioe->rs_num, ioe->anchor))) {
3679 free(ioe, M_TEMP);
3686 free(ioe, M_TEMP);