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.

Details

Provenance
glebiusAuthored on Mar 28 2024, 9:10 PM
Parents
rG722b8e3cb62b: Fix style nits in kern_linker.c
Branches
Unknown
Tags
Unknown