mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
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>
This commit is contained in:
parent
0780f5c3fb
commit
4e261006a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317102
@ -1852,6 +1852,8 @@ pfioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct thread *td
|
|||||||
counter_u64_zero(V_pf_status.fcounters[i]);
|
counter_u64_zero(V_pf_status.fcounters[i]);
|
||||||
for (int i = 0; i < SCNT_MAX; i++)
|
for (int i = 0; i < SCNT_MAX; i++)
|
||||||
counter_u64_zero(V_pf_status.scounters[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;
|
V_pf_status.since = time_second;
|
||||||
if (*V_pf_status.ifname)
|
if (*V_pf_status.ifname)
|
||||||
pfi_update_status(V_pf_status.ifname, NULL);
|
pfi_update_status(V_pf_status.ifname, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user