pf (t)ftp-proxy: use libpfctl instead of DIOCGETSTATUS
authorKristof Provost <kp@FreeBSD.org>
Tue, 29 Aug 2023 15:00:44 +0000 (17:00 +0200)
committerKristof Provost <kp@FreeBSD.org>
Thu, 31 Aug 2023 08:56:31 +0000 (10:56 +0200)
commitddd08375c85576b49fb9a34968ba2c2f4f8d56cf
tree44084a0934d7a0b756d78bdfd36413af713f85c2
parent8c1274138a20ee2342c4f217adb605e3abc14042
pf (t)ftp-proxy: use libpfctl instead of 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/D41647
contrib/pf/ftp-proxy/filter.c
contrib/pf/tftp-proxy/filter.c