summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2017-05-12 02:12:03 +0000
committercy <cy@FreeBSD.org>2017-05-12 02:12:03 +0000
commitac962543d8086711bbf1fc4561e38afd62ee8c13 (patch)
tree5394023caf2220526e79dbca5d7d6f97cd37aa07
parent1c97de6a177e07785913417b7ac295a42bb48145 (diff)
downloadFreeBSD-src-ac962543d8086711bbf1fc4561e38afd62ee8c13.zip
FreeBSD-src-ac962543d8086711bbf1fc4561e38afd62ee8c13.tar.gz
Ifdef out a redundant if statement when INET6 is disabled.
-rw-r--r--contrib/ipfilter/tools/ippool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/ipfilter/tools/ippool.c b/contrib/ipfilter/tools/ippool.c
index 243932c..883f82a 100644
--- a/contrib/ipfilter/tools/ippool.c
+++ b/contrib/ipfilter/tools/ippool.c
@@ -1047,7 +1047,9 @@ setnodeaddr(int type, int role, void *ptr, char *arg)
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);
OpenPOWER on IntegriCloud