Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2017 02:12:04 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r318203 - in stable: 10/contrib/ipfilter/tools 11/contrib/ipfilter/tools
Message-ID:  <201705120212.v4C2C44G064980@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Fri May 12 02:12:03 2017
New Revision: 318203
URL: https://svnweb.freebsd.org/changeset/base/318203

Log:
  Ifdef out a redundant if statement when INET6 is disabled.

Modified:
  stable/11/contrib/ipfilter/tools/ippool.c
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/contrib/ipfilter/tools/ippool.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/11/contrib/ipfilter/tools/ippool.c
==============================================================================
--- stable/11/contrib/ipfilter/tools/ippool.c	Fri May 12 01:09:24 2017	(r318202)
+++ stable/11/contrib/ipfilter/tools/ippool.c	Fri May 12 02:12:03 2017	(r318203)
@@ -1047,7 +1047,9 @@ setnodeaddr(int type, int role, void *pt
 	if (type == IPLT_POOL) {
 		ip_pool_node_t *node = ptr;
 
+#ifdef USE_INET6
 		if (node->ipn_addr.adf_family == AF_INET)
+#endif
 			node->ipn_addr.adf_len = offsetof(addrfamily_t,
 							  adf_addr) +
 						 sizeof(struct in_addr);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705120212.v4C2C44G064980>