diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-12-03 18:47:47 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-12-03 18:47:47 +0000 |
commit | 79cceaf147f95200801e822a71451c098160bd1e (patch) | |
tree | ae2a98158e61c4464b5928866cd3022f39608104 | |
parent | e77d25334dbbb1cb4cf6fb10b43f3cf990089325 (diff) |
Don't reset pf_status.debug and .since on DIOCCLRSTATUS.
From Dries Schellekens. Closes PR 2227.
-rw-r--r-- | sys/net/pf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 2ded26a3030..4d5345401bf 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.175 2001/12/01 19:11:41 deraadt Exp $ */ +/* $OpenBSD: pf.c,v 1.176 2001/12/03 18:47:46 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1997,12 +1997,16 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) } case DIOCCLRSTATUS: { - u_int8_t running = pf_status.running; + u_int32_t running = pf_status.running; u_int32_t states = pf_status.states; + u_int32_t since = pf_status.since; + u_int32_t debug = pf_status.debug; bzero(&pf_status, sizeof(struct pf_status)); pf_status.running = running; pf_status.states = states; + pf_status.since = since; + pf_status.debug = debug; break; } |