Skip to content

Commit

Permalink
use libpfctl
Browse files Browse the repository at this point in the history
FreeBSD 15 has removed several ioctl calls (such as DIOCGETSTATUS and
DIOCGETRULE) and replaced them. The easiest way to cope with that is to
use the provided libpfctl library.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
  • Loading branch information
kprovost committed Nov 14, 2023
1 parent 2c0c73a commit e71d8fb
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 78 deletions.
5 changes: 5 additions & 0 deletions miniupnpd/configure
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,11 @@ if [ "$MAKEFILE" = "Makefile.bsd" ] || [ "$OS_NAME" = "Darwin" ] || [ "$OS_NAME"
echo "FWNAME = $FW" > bsdmake.inc
echo "SRCDIR = ${BASEDIR}" >> bsdmake.inc
echo "CPPFLAGS += -I." >> bsdmake.inc
if [ "$OS_NAME" = "FreeBSD" ] && [ "$FW" = "pf" ] ; then
echo "#define USE_LIBPFCTL 1" >> ${CONFIGFILE}
echo "CFLAGS += -I/usr/local/include/" >> bsdmake.inc
echo "LDFLAGS += -L/usr/local/lib -lpfctl" >> bsdmake.inc
fi
fi
if [ "$MAKEFILE" ] ; then
cp "${BASEDIR}/${MAKEFILE}" Makefile && echo "${BASEDIR}/${MAKEFILE} -> Makefile"
Expand Down

0 comments on commit e71d8fb

Please sign in to comment.