libpfctl: handle the 'pfctl' netlink family not being supported
authorKristof Provost <kp@FreeBSD.org>
Mon, 6 Nov 2023 10:57:35 +0000 (11:57 +0100)
committerKristof Provost <kp@FreeBSD.org>
Mon, 6 Nov 2023 12:53:56 +0000 (13:53 +0100)
commit497ccc21ef9378f92e30867fa2b473759fd64b45
treefd55c78d4d2810f719c4cec7bb46b8b742e3aec3
parentbce728719e7f57272d99b6d039f10b4c636fa024
libpfctl: handle the 'pfctl' netlink family not being supported

If we fail to find the pfctl family we should not attempt to make the
call. That means that either pf is not loaded, or it's a very old (i.e.
pre-netlink) version.

Reported by: manu
Sponsored by: Rubicon Communications, LLC ("Netgate")
lib/libpfctl/libpfctl.c