this patch removes erroneous check from pf_ioctl.c, and fixes DIOCCHANGERULE 
command:

Index: sys/net/pf_ioctl.c
===================================================================
RCS file: /cvs/src/sys/net/pf_ioctl.c,v
retrieving revision 1.232
diff -u -p -u -p -r1.232 pf_ioctl.c
--- sys/net/pf_ioctl.c  18 Jan 2010 23:52:46 -0000      1.232
+++ sys/net/pf_ioctl.c  27 Apr 2010 09:04:37 -0000
@@ -1208,12 +1208,6 @@ pfioctl(dev_t dev, u_long cmd, caddr_t a
                struct pf_rule          *oldrule = NULL, *newrule = NULL;
                u_int32_t                nr = 0;
 
-               if (!(pcr->action == PF_CHANGE_REMOVE ||
-                   pcr->action == PF_CHANGE_GET_TICKET)) {
-                       error = EBUSY;
-                       break;
-               }
-
                if (pcr->action < PF_CHANGE_ADD_HEAD ||
                    pcr->action > PF_CHANGE_GET_TICKET) {
                        error = EINVAL;


-- 
Alexander Vladimirov <[email protected]>

Reply via email to