Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2017 20:07:22 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317102 - head/sys/netpfil/pf
Message-ID:  <201704182007.v3IK7Mq7075155@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Tue Apr 18 20:07:21 2017
New Revision: 317102
URL: https://svnweb.freebsd.org/changeset/base/317102

Log:
  pf: Also clear limit counters
  
  The "pfctl -F info" command didn't clear the limit counters ( as shown in the
  "pfctl -vsi" output).
  
  Submitted by:	Max <maximos@als.nnov.ru>

Modified:
  head/sys/netpfil/pf/pf_ioctl.c

Modified: head/sys/netpfil/pf/pf_ioctl.c
==============================================================================
--- head/sys/netpfil/pf/pf_ioctl.c	Tue Apr 18 19:54:04 2017	(r317101)
+++ head/sys/netpfil/pf/pf_ioctl.c	Tue Apr 18 20:07:21 2017	(r317102)
@@ -1852,6 +1852,8 @@ DIOCGETSTATES_full:
 			counter_u64_zero(V_pf_status.fcounters[i]);
 		for (int i = 0; i < SCNT_MAX; i++)
 			counter_u64_zero(V_pf_status.scounters[i]);
+		for (int i = 0; i < LCNT_MAX; i++)
+			counter_u64_zero(V_pf_status.lcounters[i]);
 		V_pf_status.since = time_second;
 		if (*V_pf_status.ifname)
 			pfi_update_status(V_pf_status.ifname, NULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704182007.v3IK7Mq7075155>