summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
authorDaniel Becker <razzfazz@gmail.com>2015-02-08 18:32:24 -0800
committerRenato Botelho <garga@FreeBSD.org>2015-02-23 14:38:30 -0300
commit76feb4073561c38ccb6d67b285ed8f1a708fed95 (patch)
tree74ede15fb2bb87968d2c1abddca5617300780a96 /usr/local/www/services_dhcpv6.php
parenta0e4410f08e364637fceb5f42062eeed78ed5ef6 (diff)
downloadpfsense-76feb4073561c38ccb6d67b285ed8f1a708fed95.zip
pfsense-76feb4073561c38ccb6d67b285ed8f1a708fed95.tar.gz
make computation of start of DHCPv6 range consistent with actual check
When computing the start IP for the 'available range' field, services_dhcpv6.php attempts to increment a colon-formatted v6 address. Since this always fails, so the value that's printed is not actually incremented, so remove the bogus addition. Note that this is actually matches the behavior of the range checks that services_dhcpv6.php performs: The actual check uses the range [gen_subnetv6()..gen_subnetv6_max()], which does include the first (= all-zeroes host part) v6 address in the prefix.
Diffstat (limited to 'usr/local/www/services_dhcpv6.php')
-rw-r--r--usr/local/www/services_dhcpv6.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php
index aeb21e0..393f211 100644
--- a/usr/local/www/services_dhcpv6.php
+++ b/usr/local/www/services_dhcpv6.php
@@ -568,7 +568,6 @@ display_top_tabs($tab_array);
<td width="78%" class="vtable">
<?php
$range_from = gen_subnetv6($ifcfgip, $ifcfgsn);
- $range_from++;
echo $range_from;
?>
OpenPOWER on IntegriCloud