diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2006-01-06 00:37:28 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2006-01-06 00:37:28 +0000 |
commit | 4eb8646b3a70821c255a4ce976929d618c69d9e2 (patch) | |
tree | d4229c4de83f07946b7c53ac971581990f3f167c /sys/net | |
parent | c59f4e62ecdd9c7c9ab13a39651fc09f896fa6a7 (diff) |
for DIOCCLRSTATUS (pfctl -Fi), reset 'Enabled for x' time, too. simplifies
computations of change rates. unfortunately, I don't remember who suggested
this.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index b4cb92292b4..601100c6ce2 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.162 2006/01/05 02:23:39 deraadt Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.163 2006/01/06 00:37:27 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1971,6 +1971,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) bzero(pf_status.counters, sizeof(pf_status.counters)); bzero(pf_status.fcounters, sizeof(pf_status.fcounters)); bzero(pf_status.scounters, sizeof(pf_status.scounters)); + pf_status.since = time_second; if (*pf_status.ifname) pfi_clr_istats(pf_status.ifname); break; |