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

[email protected]
Newsgroups gmane.os.freebsd.devel.pf4freebsd
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282984

Leonid Evdokimov <[email protected]> changed:

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

--- Comment #8 from Leonid Evdokimov <[email protected]> ---
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.