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
committerDaniel Becker <razzfazz@gmail.com>2015-02-09 01:50:47 -0800
commit936bfd8436ab14ae84b10074f2dcc5ba465a2454 (patch)
treeda0a7ff08dea06b180150860dd07c659d1653888 /usr/local/www/services_dhcpv6.php
parent6d5d965875ea7e26b8e9113ce8281ccbb3da7a74 (diff)
downloadpfsense-936bfd8436ab14ae84b10074f2dcc5ba465a2454.zip
pfsense-936bfd8436ab14ae84b10074f2dcc5ba465a2454.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