Patch: correct configure check for netfilter_ipv4 support on some platforms.

Nick Mathewson nickm at freehaven.net
Mon Jul 7 15:47:42 UTC 2008


On Sun, Jul 06, 2008 at 10:08:07PM -0700, coderman wrote:
> on some systems the transparent proxy support is not enabled because
> of a failed check for netfilter_ipv4.h.  this check fails because the
> ipv4 include expects some of the structure definitions in
> netfilter/in.h which is not included in the check.
> 
> this patch includes in.h if present to fix the configure check.
> 
> best regards,

> diff -Naur tor-svn-current/configure.in tor-patched/configure.in
> --- tor-svn-current/configure.in	2008-07-05 21:17:04.584497000 +0000
> +++ tor-patched/configure.in	2008-07-07 05:02:52.832713872 +0000
> @@ -349,6 +349,9 @@
>  #endif
>  #ifdef HAVE_SYS_SOCKET_H
>  #include <sys/socket.h>
> +#endif
> +#ifdef HAVE_NETINET_IN_H
> +#include <netinet/in.h>
>  #endif])
>  
>  if test x$transparent = xtrue ; then

Thanks; I've applied this in trunk and in the 0.2.0.x branch.



More information about the tor-dev mailing list