diff options
-rw-r--r-- | sys/net/pf_ioctl.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index 408b60f76f6..4439e8c4e7f 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.211 2008/11/24 13:22:09 mikeb Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.212 2009/02/15 20:42:33 mbalmer Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1588,7 +1588,9 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) error = EINVAL; break; } +#if NPFSYNC > 0 error = pfsync_state_import(sp, PFSYNC_SI_IOCTL); +#endif break; } @@ -1605,8 +1607,9 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) error = ENOENT; break; } - +#if NPFSYNC > 0 pfsync_state_export(&ps->state, s); +#endif break; } @@ -1631,7 +1634,9 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) if (state->timeout != PFTM_UNLINKED) { if ((nr+1) * sizeof(*p) > (unsigned)ps->ps_len) break; +#if NPFSYNC > 0 pfsync_state_export(pstore, state); +#endif error = copyout(pstore, p, sizeof(*p)); if (error) { free(pstore, M_TEMP); |