HomeFreeBSD

pfilctl: fix 'pfilctl hooks' when nothing is connected

Description

pfilctl: fix 'pfilctl hooks' when nothing is connected

The 'hooks' command actually worked accidentially until now. It used
PFILIOC_LISTHEADS to determine current number of hooks. This worked when
at least one head had a hook connected to it.

(cherry picked from commit 1bfe195143ffb6832ac6702e281964541554fcb3)

Details

Provenance
glebiusAuthored on Mar 28 2024, 9:10 PM
Parents
rGbf4972a48d2e: bsdlabel: add deprecation notice
Branches
Unknown
Tags
Unknown