HomeFreeBSD

libpfctl: allow access to the fd

Description

libpfctl: allow access to the fd

pfctl_open() opens both /dev/pf and a netlink socket. Allow access to the /dev/
pf fd via pfctl_fd().
This means that libpfctl users no longer have to open /dev/pf themselves for any
calls that are not yet available in libpfctl.

Sponsored by: Rubicon Communications, LLC ("Netgate")
MFC after: 2 weeks

Details

Provenance
kpAuthored on Apr 24 2024, 6:40 AM
Parents
rGa3f7176523e8: libpfctl: fix incorrect pcounters array size
Branches
Unknown
Tags
Unknown