summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2015-03-22 14:00:14 -0500
committerk-paulius <k.dash.paulius@gmail.com>2015-03-22 14:00:14 -0500
commitddb4b472866e890379122c65f50c47b3ebafc5e9 (patch)
treee9c72a12da78d9e6c1ec234c8383156942690f88 /usr/local/www/interfaces.php
parent90e5c03a5d84bfc1be079c21f9f903b52dcc0de8 (diff)
downloadpfsense-ddb4b472866e890379122c65f50c47b3ebafc5e9.zip
pfsense-ddb4b472866e890379122c65f50c47b3ebafc5e9.tar.gz
Make sure 'DHCPv6 Prefix Delegation size' is provided if 'Send IPv6 prefix hint' flag is checked to avoid generating invalid dhcp6c configuration file.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rw-r--r--usr/local/www/interfaces.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 8ca3247..425bbfe 100644
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -576,6 +576,9 @@ if ($_POST['apply']) {
case "dhcp6":
if (in_array($wancfg['ipaddrv6'], array()))
$input_errors[] = sprintf(gettext("You have to reassign the interface to be able to configure as %s."),$_POST['type6']);
+ if ($_POST['dhcp6-ia-pd-send-hint'] && strtolower($_POST['dhcp6-ia-pd-len']) == 'none') {
+ $input_errors[] = gettext('DHCPv6 Prefix Delegation size must be provided when Send IPv6 prefix hint flag is checked');
+ }
break;
case "6rd":
foreach ($ifdescrs as $ifent => $ifdescr) {
OpenPOWER on IntegriCloud