diff options
author | Daniel Becker <razzfazz@gmail.com> | 2013-09-02 17:34:30 -0700 |
---|---|---|
committer | Daniel Becker <razzfazz@gmail.com> | 2013-09-02 17:34:30 -0700 |
commit | 90652fbfe9e194ac83b1fc76d4b31c8c7309166e (patch) | |
tree | bb0ba48464aa81fb1fb7fdd6bd887bdb0498c615 /usr | |
parent | 7a6851dff7763fc85d03648ca30039fcd53ac620 (diff) | |
download | pfsense-90652fbfe9e194ac83b1fc76d4b31c8c7309166e.zip pfsense-90652fbfe9e194ac83b1fc76d4b31c8c7309166e.tar.gz |
add option to send prefix hint for requesting desired prefix length for delegation
This change adds an option on the interfaces page for sending a prefix hint for the selected delegation size. If enabled, a "prefix" field requesting :: with the appropriate prefix length (64 - dhcp6-ia-pd-len) is added to the "id-assoc pd" entry in the dhcp6c config file. This hint is required for requesting prefixes shorter than /64 from Comcast.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 30bfc1c..22fc811 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -218,6 +218,7 @@ switch($wancfg['ipaddrv6']) { if(!isset($wancfg['dhcp6-ia-pd-len'])) $wancfg['dhcp6-ia-pd-len'] = "none"; $pconfig['dhcp6-ia-pd-len'] = $wancfg['dhcp6-ia-pd-len']; + $pconfig['dhcp6-ia-pd-send-hint'] = isset($wancfg['dhcp6-ia-pd-send-hint']); $pconfig['type6'] = "dhcp6"; $pconfig['dhcp6prefixonly'] = isset($wancfg['dhcp6prefixonly']); $pconfig['dhcp6usev4iface'] = isset($wancfg['dhcp6usev4iface']); @@ -748,6 +749,7 @@ if ($_POST['apply']) { unset($wancfg['dhcprejectfrom']); unset($wancfg['dhcp6-duid']); unset($wancfg['dhcp6-ia-pd-len']); + unset($wancfg['dhcp6-ia-pd-send-hint']); unset($wancfg['dhcp6prefixonly']); unset($wancfg['dhcp6usev4iface']); unset($wancfg['track6-interface']); @@ -886,6 +888,8 @@ if ($_POST['apply']) { $wancfg['ipaddrv6'] = "dhcp6"; $wancfg['dhcp6-duid'] = $_POST['dhcp6-duid']; $wancfg['dhcp6-ia-pd-len'] = $_POST['dhcp6-ia-pd-len']; + if($_POST['dhcp6-ia-pd-send-hint'] == "yes") + $wancfg['dhcp6-ia-pd-send-hint'] = true; if($_POST['dhcp6prefixonly'] == "yes") $wancfg['dhcp6prefixonly'] = true; if($_POST['dhcp6usev4iface'] == "yes") @@ -1836,6 +1840,13 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), </td> </tr> <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("Send IPv6 prefix hint"); ?></td> + <td width="78%" class="vtable"> + <input name="dhcp6-ia-pd-send-hint" type="checkbox" id="dhcp6-ia-pd-send-hint" value="yes" <?php if ($pconfig['dhcp6-ia-pd-send-hint'] == true) echo "checked=\"checked\""; ?> /> + <?=gettext("Send an IPv6 prefix hint to indicate the desired prefix size for delegation"); ?> + </td> + </tr> + <tr> <td colspan="2" valign="top" height="16"></td> </tr> </table> |