DragonFly submit List (threaded) for 2005-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
pf ioctl(DIOCADDADDR) ticket checking
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;
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]