NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/60738: No way to reset statistics in NPF



>Number:         60738
>Category:       kern
>Synopsis:       No way to reset statistics in NPF
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 17 13:40:00 +0000 2026
>Originator:     Emmanuel Nyarko
>Release:        NetBSD 11
>Organization:
NetBSD 
>Environment:
NetBSD 11.0_STABLE (GENERIC) #0: Fri Aug 21 06:09:16 UTC 2026 
>Description:

After flushing rules or reloading different set of rules, there may be need to have statistics of a different network or different traffic. This will require statistics values zeroed out and then restarted. users will then be able to see new statistics for new networks that are configured in NPF. There is currently no way of doing that unless after rebooting your machine.
>How-To-Repeat:

npfctl flush
npfctl stop

then join a different network 

npfctl reload

statistics show a count of old traffic and new traffic
>Fix:


npfctl stats needs a reset option to reset the statistics to zeros.

npfctl stats reset


This gives users the flexibility to manage their statistics however they want.




Home | Main Index | Thread Index | Old Index