From owner-svn-src-head@FreeBSD.ORG Tue Aug 5 13:01:22 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B7BEC880 for ; Tue, 5 Aug 2014 13:01:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D19D26D3 for ; Tue, 5 Aug 2014 13:01:22 +0000 (UTC) Received: from cy (uid 918) (envelope-from cy@FreeBSD.org) id 5ad6 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Tue, 05 Aug 2014 13:01:22 +0000 From: Cy Schubert Date: Tue, 5 Aug 2014 13:01:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269585 - in head: sbin/ipf sys/contrib/ipfilter/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e0d5a2.5ad6.714bf468@svn.freebsd.org> X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2014 13:01:22 -0000 Author: cy Date: Tue Aug 5 13:01:21 2014 New Revision: 269585 URL: http://svnweb.freebsd.org/changeset/base/269585 Log: Honour WITH and WITHOUT_INET6_SUPPORT. Approved by: glebius (mentor) MFC after: 3 days Modified: head/sbin/ipf/Makefile.inc head/sys/contrib/ipfilter/netinet/ip_compat.h Modified: head/sbin/ipf/Makefile.inc ============================================================================== --- head/sbin/ipf/Makefile.inc Tue Aug 5 12:08:50 2014 (r269584) +++ head/sbin/ipf/Makefile.inc Tue Aug 5 13:01:21 2014 (r269585) @@ -1,5 +1,7 @@ # $FreeBSD$ +.include + WARNS?= 2 NO_WFORMAT= NO_WARRAY_BOUNDS= @@ -10,6 +12,12 @@ CFLAGS+= -I${.CURDIR}/../../../sys CFLAGS+= -I${.CURDIR}/../../../sys/contrib/ipfilter CFLAGS+= -DSTATETOP -D__UIO_EXPOSE +.if ${MK_INET6_SUPPORT} != "no" +CFLAGS+= -DUSE_INET6 +.else +CFLAGS+= -DNOINET6 +.endif + LIBIPF= ${.OBJDIR}/../libipf/libipf.a DPADD+= ${LIBIPF} ${LIBKVM} LDADD+= ${LIBIPF} -lkvm Modified: head/sys/contrib/ipfilter/netinet/ip_compat.h ============================================================================== --- head/sys/contrib/ipfilter/netinet/ip_compat.h Tue Aug 5 12:08:50 2014 (r269584) +++ head/sys/contrib/ipfilter/netinet/ip_compat.h Tue Aug 5 13:01:21 2014 (r269585) @@ -118,6 +118,10 @@ struct ether_addr { # if defined(INET6) && !defined(USE_INET6) # define USE_INET6 # endif +# else +# if !defined(USE_INET6) && !defined(NOINET6) +# define USE_INET6 +# endif # endif # if defined(_KERNEL)