[OpenWrt-Devel] [PATCH 1/5] [package] iptables: Disable IPv6 support

Jo-Philipp Wich jow at openwrt.org
Tue Mar 8 14:02:33 EST 2016


Hi,

your change makes no sense, the logic is the very same.

It is possible that yours is not even working and will now always
disable IPv6, even if its actually enable.

I believe the actual problem is that CONFIG_IPV6 refers to the kernel
config symbol here, not to the one from our build .config.

~ Jow

On 08.03.2016 19:55, Ronaldo Afonso wrote:
> I was trying to disable IPv6 support when compiling OpenWrt for TP-Link
> tl-wr3040 router and got some errors compiling the iptables package.
> 
> It seems that iptables package cannot be compiled if IPv6 support was
> disabled.
> 
> Checking the Makefile for iptables package I think I found something
> wrong with the "--disable-ipv6" configure argument option.
> 
> The patch that follows solved the problem.
> 
> Signed-off-by: Ronaldo Afonso <ronaldo at ronaldoafonso.com.br
> <mailto:ronaldo at ronaldoafonso.com.br>>
> 
> diff --git a/package/network/utils/iptables/Makefile
> b/package/network/utils/iptables/Makefile
> index 6f7529c..4e2c4c8 100644
> --- a/package/network/utils/iptables/Makefile
> +++ b/package/network/utils/iptables/Makefile
> @@ -434,8 +434,11 @@ CONFIGURE_ARGS += \
>         --enable-devel \
>         --with-kernel="$(LINUX_DIR)/user_headers" \
>         --with-xtlibdir=/usr/lib/iptables \
> -       --enable-static \
> -       $(if $(CONFIG_IPV6),,--disable-ipv6)
> +       --enable-static
> +
> +ifndef ($(CONFIG_IPV6))
> +       CONFIGURE_ARGS += --disable-ipv6
> +endif
>  
>  MAKE_FLAGS := \
>         $(TARGET_CONFIGURE_OPTS) \
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list