summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authormarjohn56 <martin@queens-park.com>2016-12-19 21:32:55 +0000
committerRenato Botelho <renato@netgate.com>2016-12-20 10:03:59 -0200
commit26ec7e01cc8a5dc5d9f09a1ba740ee3e3dabafb7 (patch)
tree810d2d8e99beb0c4ab9930418c781fbb28456928 /src/usr/local/www/interfaces.php
parente0c32322f1017531511997071e7a4360ff463f53 (diff)
downloadpfsense-26ec7e01cc8a5dc5d9f09a1ba740ee3e3dabafb7.zip
pfsense-26ec7e01cc8a5dc5d9f09a1ba740ee3e3dabafb7.tar.gz
dhcp6c no release
Script changes to allow no-release option of dhcp6c. These changes to be used in conjunction with pfSense/FreeBSD-ports/net/dhcp6c recent change from PR #231 (cherry picked from commit 505635302a3d555eb6f82cb552c99c7ecb813f46)
Diffstat (limited to 'src/usr/local/www/interfaces.php')
-rw-r--r--src/usr/local/www/interfaces.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php
index de8f776..292cd00 100644
--- a/src/usr/local/www/interfaces.php
+++ b/src/usr/local/www/interfaces.php
@@ -317,6 +317,7 @@ switch ($wancfg['ipaddrv6']) {
$pconfig['dhcp6usev4iface'] = isset($wancfg['dhcp6usev4iface']);
$pconfig['dhcp6debug'] = isset($wancfg['dhcp6debug']);
$pconfig['dhcp6withoutra'] = isset($wancfg['dhcp6withoutra']);
+ $pconfig['dhcp6norelease'] = isset($wancfg['dhcp6norelease']);
break;
case "6to4":
$pconfig['type6'] = "6to4";
@@ -1014,6 +1015,7 @@ if ($_POST['apply']) {
unset($wancfg['track6-interface']);
unset($wancfg['track6-prefix-id']);
unset($wancfg['dhcp6withoutra']);
+ unset($wancfg['dhcp6norelease']);
unset($wancfg['prefix-6rd']);
unset($wancfg['prefix-6rd-v4plen']);
unset($wancfg['gateway-6rd']);
@@ -1264,7 +1266,9 @@ if ($_POST['apply']) {
if ($_POST['dhcp6withoutra'] == "yes") {
$wancfg['dhcp6withoutra'] = true;
}
-
+ if ($_POST['dhcp6norelease'] == "yes") {
+ $wancfg['dhcp6norelease'] = true;
+ }
if (!empty($_POST['adv_dhcp6_interface_statement_send_options'])) {
$wancfg['adv_dhcp6_interface_statement_send_options'] = $_POST['adv_dhcp6_interface_statement_send_options'];
}
@@ -2172,7 +2176,12 @@ $section->addInput(new Form_Checkbox(
'Required by some ISPs, especially those not using PPPoE',
$pconfig['dhcp6withoutra']
));
-
+$section->addInput(new Form_Checkbox(
+ 'dhcp6norelease',
+ 'Do not allow PD/Address release',
+ 'dhcp6c will send a release to the ISP on exit, some ISPs then release the allocated address or prefix. This option prevents that signal ever being sent',
+ $pconfig['dhcp6norelease']
+));
$section->addInput(new Form_Input(
'adv_dhcp6_config_file_override_path',
'Configuration File Override',
OpenPOWER on IntegriCloud