pf ioctl(DIOCADDADDR) ticket checking

Eduardo Tongson propolice at gmail.com
Fri Aug 5 05:11:19 PDT 2005


add DIOCADDADDR ticket checking
from: pf mailing list

--ed
Eduardo Tongson 



--- pf_ioctl.c  2005-07-21 13:51:50.000000000 +0000
+++ pf_ioctl.c       2005-08-05 11:59:35.000000000 +0000
@@ -1980,6 +1980,10 @@ pfioctl(dev_t dev, u_long cmd, caddr_t a
        case DIOCADDADDR: {
                struct pfioc_pooladdr   *pp = (struct pfioc_pooladdr *)addr;
 
+               if(pp->ticket != ticket_pabuf) {
+                       error = EBUSY;
+                       break;
+               }
 #ifndef INET
                if (pp->af == AF_INET) {
                        error = EAFNOSUPPORT;






More information about the Submit mailing list