Removed all references to s6_addr32, fixed compilation error.

This commit is contained in:
pdw
2011-10-03 20:24:23 +00:00
parent fc511cfea9
commit f6f4b68a07
2 changed files with 2 additions and 10 deletions

View File

@@ -81,14 +81,6 @@ AC_C_CONST
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_HEADER_TIME AC_HEADER_TIME
dnl At least FeeBSD doesn't define s6_addr32 in user-land code, with a
dnl note saying this is not standard
AC_CHECK_DECL([s6_addr32],
[],
[AC_DEFINE([s6_addr32], [__u6_addr.__u6_addr32],
[Define to a way to access the inner bytes of an ip6 address.])],
[#include <netinet/in.h>])
dnl dnl
dnl Are we on a system that uses the STREAMS low-level DLPI interface? dnl Are we on a system that uses the STREAMS low-level DLPI interface?
dnl dnl

View File

@@ -561,8 +561,8 @@ int options_config_get_net_filter6() {
} }
} }
/* Prepare any comparison by masking the provided filtered net. */ /* Prepare any comparison by masking the provided filtered net. */
for (j=0; j < 4; ++j) for (j=0; j < 16; ++j)
options.netfilter6net.s6_addr32[j] &= options.netfilter6mask.s6_addr32[j]; options.netfilter6net.s6_addr[j] &= options.netfilter6mask.s6_addr[j];
return 1; return 1;
} }