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
922acaf472
commit
e42e532ea5
@ -1852,6 +1852,8 @@ DIOCGETSTATES_full:
|
|||||||
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…
x
Reference in New Issue
Block a user