HomeFreeBSD

snmp_pf: use libpfctl's pfctl_get_status() rather than DIOCGETSTATUS

Description

snmp_pf: use libpfctl's pfctl_get_status() rather than DIOCGETSTATUS

Prefer libpfctl functions over direct access to the ioctl whenever
possible. This will allow subsequent removal of DIOCGETSTATUS (in 15) as
there already is an nvlist-based alternative.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D41650

Details

Provenance
kpAuthored on Aug 29 2023, 3:16 PM
Differential Revision
D41650: snmp_pf: use libpfctl's pfctl_get_status() rather than DIOCGETSTATUS
Parents
rGe3d3d61a7d94: libpfctl: implement status counter accessor functions
Branches
Unknown
Tags
Unknown