]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
snmp_pf: use libpfctl's pfctl_get_status() rather than DIOCGETSTATUS
authorKristof Provost <kp@FreeBSD.org>
Tue, 29 Aug 2023 15:16:19 +0000 (17:16 +0200)
committerKristof Provost <kp@FreeBSD.org>
Thu, 31 Aug 2023 08:56:32 +0000 (10:56 +0200)
commit6fbb9fbf7d659574512d706912e8fd0576b13573
tree9d04a8e57e2d615886ba7a5e0c27520adb0b92e2
parente3d3d61a7d94a4155ef70048a8b578985fca8383
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
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c