[Bug 282984] [PATCH] pfctl: add -T `makezero` to touch pfras_tzero _only_ for non-zero entries

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 04 Dec 2024 15:44:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282984

Leonid Evdokimov <leon+freebsd@darkk.net.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #255466|0                           |1
        is obsolete|                            |

--- Comment #8 from Leonid Evdokimov <leon+freebsd@darkk.net.ru> ---
Created attachment 255628
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=255628&action=edit
pfctl: add -T reset command

Hello Kristof,

I'm adding the updated patch with better commit message & tests.

While I agree that `-T zero ${ip}` is the right idea, I believe that `-T
expire` might deserve both `zero ${ip}` and `reset` to be available as soon as
timestamp is tracked in the kernel... unless there is a plan to obsolete
`pfras_tzero` :-)

Another option I can think of is to implement machine-readable TSV and/or json
output for `-T show` to replace regexp-based parsing with `awk` or jq`.

-- 
You are receiving this mail because:
You are the assignee for the bug.