summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2013-07-02 10:18:31 +0200
committersmos <seth.mos@dds.nl>2013-07-02 10:21:07 +0200
commit6dcbd1b3ada8c5fdbcb2f10ac5b9791ad281b399 (patch)
treeae999630fe562da1811eb41d7283e999b4ba48bd /usr
parent5ce5439f411cec4e03b47bab82f71c65158a444e (diff)
downloadpfsense-6dcbd1b3ada8c5fdbcb2f10ac5b9791ad281b399.zip
pfsense-6dcbd1b3ada8c5fdbcb2f10ac5b9791ad281b399.tar.gz
Add a checkbox that can be used to request only a IPv6 prefix without a IPv6 address. Some ISPs DHCP6 servers will fail the request if both are requested and only a Prefix is allowed.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 7e5d97d..ec70978 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -219,6 +219,7 @@ switch($wancfg['ipaddrv6']) {
$wancfg['dhcp6-ia-pd-len'] = "none";
$pconfig['dhcp6-ia-pd-len'] = $wancfg['dhcp6-ia-pd-len'];
$pconfig['type6'] = "dhcp6";
+ $pconfig['dhcp6prefixonly'] = isset($wancfg['dhcp6prefixonly']);
break;
case "6to4":
$pconfig['type6'] = "6to4";
@@ -746,6 +747,7 @@ if ($_POST['apply']) {
unset($wancfg['dhcprejectfrom']);
unset($wancfg['dhcp6-duid']);
unset($wancfg['dhcp6-ia-pd-len']);
+ unset($wancfg['dhcp6prefixonly']);
unset($wancfg['track6-interface']);
unset($wancfg['track6-prefix-id']);
unset($wancfg['prefix-6rd']);
@@ -874,6 +876,8 @@ if ($_POST['apply']) {
if ($_POST['gatewayv6'] != "none") {
$wancfg['gatewayv6'] = $_POST['gatewayv6'];
}
+ if($_POST['dhcp6prefixonly'] == "yes")
+ $wancfg['dhcp6prefixonly'] = true;
break;
case "slaac":
$wancfg['ipaddrv6'] = "slaac";
@@ -1797,6 +1801,13 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
</tr>
-->
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Request only a IPv6 prefix"); ?></td>
+ <td width="78%" class="vtable">
+ <input name="dhcp6prefixonly" type="checkbox" value="yes" <?php if ($pconfig['dhcp6prefixonly'] == true) echo "checked=\"checked\""; ?>" />
+ <?=gettext("Only request a IPv6 prefix, do not request a IPv6 address"); ?>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncell"><?=gettext("DHCPv6 Prefix Delegation size"); ?></td>
<td width="78%" class="vtable">
<select name="dhcp6-ia-pd-len" class="formselect" id="dhcp6-ia-pd-len">
OpenPOWER on IntegriCloud