summaryrefslogtreecommitdiff
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-02 01:33:57 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-02 01:33:57 +0000
commit726a0b04a13ff54698b23dc929faf727589593dd (patch)
treecee133f3c2b559b0c0b09a0aee76f064b6feabd0 /sys/net/pf_ioctl.c
parent175a8fb692752e743f26874b87ffbc43f910232a (diff)
Don't zero the debug level when we enable pf.
ok henning@ dhartmei@
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r--sys/net/pf_ioctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index deced4adda0..6d4693ccc11 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.86 2003/10/25 20:27:07 mcbride Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.87 2003/11/02 01:33:56 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -773,9 +773,11 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
error = EEXIST;
else {
u_int32_t states = pf_status.states;
+ u_int32_t debug = pf_status.debug;
bzero(&pf_status, sizeof(struct pf_status));
pf_status.running = 1;
pf_status.states = states;
+ pf_status.debug = debug;
pf_status.since = time.tv_sec;
if (status_ifp != NULL)
strlcpy(pf_status.ifname,