miniupnpd/ipfw: make it clear it is not working under FreeBSD
This commit is contained in:
parent
c0d3a17650
commit
89c6556338
|
@ -1,10 +1,10 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# $Id: configure,v 1.116 2021/05/21 22:04:34 nanard Exp $
|
# $Id: configure,v 1.119 2022/02/19 21:44:50 nanard Exp $
|
||||||
# vim: tabstop=4 shiftwidth=4 noexpandtab
|
# vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||||
#
|
#
|
||||||
# miniupnp daemon
|
# miniupnp daemon
|
||||||
# http://miniupnp.free.fr or https://miniupnp.tuxfamily.org/
|
# http://miniupnp.free.fr or https://miniupnp.tuxfamily.org/
|
||||||
# (c) 2006-2021 Thomas Bernard
|
# (c) 2006-2022 Thomas Bernard
|
||||||
# This software is subject to the conditions detailed in the
|
# This software is subject to the conditions detailed in the
|
||||||
# LICENCE file provided within the distribution
|
# LICENCE file provided within the distribution
|
||||||
|
|
||||||
|
@ -253,6 +253,10 @@ case $OS_NAME in
|
||||||
echo "Could not detect usage of ipf, pf, ipfw. Compiling for pf by default"
|
echo "Could not detect usage of ipf, pf, ipfw. Compiling for pf by default"
|
||||||
FW=pf
|
FW=pf
|
||||||
fi
|
fi
|
||||||
|
if [ "$FW" = "ipfw" ] ; then
|
||||||
|
echo "!!! ipfw is known to not work with FreeBSD, please contribute !!!"
|
||||||
|
echo "!!! see https://github.com/miniupnp/miniupnp/issues/596 !!!"
|
||||||
|
fi
|
||||||
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
|
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
|
||||||
OS_URL=http://www.freebsd.org/
|
OS_URL=http://www.freebsd.org/
|
||||||
V6SOCKETS_ARE_V6ONLY=`sysctl -n net.inet6.ip6.v6only`
|
V6SOCKETS_ARE_V6ONLY=`sysctl -n net.inet6.ip6.v6only`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: ipfwrdr.c,v 1.17 2020/05/10 22:25:45 nanard Exp $ */
|
/* $Id: ipfwrdr.c,v 1.18 2022/02/19 21:44:51 nanard Exp $ */
|
||||||
/*
|
/*
|
||||||
* MiniUPnP project
|
* MiniUPnP project
|
||||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||||
|
@ -70,6 +70,13 @@ struct file;
|
||||||
|
|
||||||
#include "../upnpglobalvars.h"
|
#include "../upnpglobalvars.h"
|
||||||
|
|
||||||
|
/* This ipfw backend is known to work with OS X up to 10.6.
|
||||||
|
* Some work is needed to support FreeBSD ipfw.
|
||||||
|
*/
|
||||||
|
#ifndef IP_FW_CURRENT_API_VERSION
|
||||||
|
#error "ip_fw.h does not contain supported API"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* init and shutdown functions */
|
/* init and shutdown functions */
|
||||||
|
|
||||||
int init_redirect(void) {
|
int init_redirect(void) {
|
||||||
|
|
Loading…
Reference in New Issue