diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-05-05 22:41:39 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-05-05 22:41:39 +0200 |
commit | 93a138ab04c551d5bcad07392fe4378a6924a23c (patch) | |
tree | c59eaa2fc569238f81717e497b2d97f81b129760 /usr/local/www/services_dhcpv6_edit.php | |
parent | 85936586cf1d42feda3c62f86c00a5a54e7f6824 (diff) | |
download | pfsense-93a138ab04c551d5bcad07392fe4378a6924a23c.zip pfsense-93a138ab04c551d5bcad07392fe4378a6924a23c.tar.gz |
Add a field for the prefix pools. Fix the DUID check
Diffstat (limited to 'usr/local/www/services_dhcpv6_edit.php')
-rw-r--r-- | usr/local/www/services_dhcpv6_edit.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/usr/local/www/services_dhcpv6_edit.php b/usr/local/www/services_dhcpv6_edit.php index a321fae..0902142 100644 --- a/usr/local/www/services_dhcpv6_edit.php +++ b/usr/local/www/services_dhcpv6_edit.php @@ -85,13 +85,15 @@ if (isset($_POST['id'])) if (isset($id) && $a_maps[$id]) { $pconfig['duid'] = $a_maps[$id]['duid']; - $pconfig['hostname'] = $a_maps[$id]['hostname']; + $pconfig['prefixpool'] = $a_maps[$id]['prefixpool']; + $pconfig['hostname'] = $a_maps[$id]['hostname']; $pconfig['ipaddrv6'] = $a_maps[$id]['ipaddrv6']; $pconfig['netbootfile'] = $a_maps[$id]['netbootfile']; $pconfig['descr'] = $a_maps[$id]['descr']; } else { $pconfig['duid'] = $_GET['duid']; - $pconfig['hostname'] = $_GET['hostname']; + $pconfig['prefixpool'] = $_GET['prefixpool']; + $pconfig['hostname'] = $_GET['hostname']; $pconfig['netbootfile'] = $_GET['netbootfile']; $pconfig['descr'] = $_GET['descr']; } @@ -125,7 +127,7 @@ if ($_POST) { if (($_POST['ipaddrv6'] && !is_ipaddrv6($_POST['ipaddrv6']))) { $input_errors[] = gettext("A valid IPv6 address must be specified."); } - if (($_POST['duid'])) { + if (empty($_POST['duid'])) { $input_errors[] = gettext("A valid DUID Identifier must be specified."); } @@ -197,13 +199,20 @@ include("head.inc"); "DUID-LLT - ETH -- TIME --- ---- address ----" <br /> "xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"</span></td> </tr> - <tr> + <tr> <td width="22%" valign="top" class="vncell"><?=gettext("IPv6 address");?></td> <td width="78%" class="vtable"> <input name="ipaddrv6" type="text" class="formfld unknown" id="ipaddrv6" size="28" value="<?=htmlspecialchars($pconfig['ipaddrv6']);?>"> <br> <?=gettext("If no IPv6 address is given, one will be dynamically allocated from the pool.");?></td> </tr> + <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Prefix Pool");?></td> + <td width="78%" class="vtable"> + <input name="prefixpool" type="text" class="formfld unknown" id="prefixpool" size="28" value="<?=htmlspecialchars($pconfig['prefixpool']);?>"> + <br> + <?=gettext("If no IPv6 Prefix Pool is given, no prefixes will be negotiated");?></td> + </tr> <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Hostname");?></td> <td width="78%" class="vtable"> |