From 26ec7e01cc8a5dc5d9f09a1ba740ee3e3dabafb7 Mon Sep 17 00:00:00 2001 From: marjohn56 Date: Mon, 19 Dec 2016 21:32:55 +0000 Subject: 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) --- src/usr/local/www/interfaces.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www/interfaces.php') 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', -- cgit v1.1