summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-01-07 23:32:03 -0600
committerChris Buechler <cmb@pfsense.org>2015-01-07 23:42:10 -0600
commit13358d35aec360858701749cb80c539ecadb95dd (patch)
tree9ed3d0ca5f23e1d83fb5f733df169d26a6cefbff
parent74017e329fdd28f5fa4cea3c4fa891ed1ccba338 (diff)
downloadpfsense-13358d35aec360858701749cb80c539ecadb95dd.zip
pfsense-13358d35aec360858701749cb80c539ecadb95dd.tar.gz
Allow for configuring /31 masks on interfaces.php. The rest of the code was updated accordingly some time ago, and an employee with Cox Communications has confirmed this allows things to work on their circuits deployed with /31s. Ticket #4190
-rw-r--r--usr/local/www/interfaces.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 06b1de2..104cbf2 100644
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -1785,11 +1785,9 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
<select name="subnet" class="formselect" id="subnet">
<?php
for ($i = 32; $i > 0; $i--) {
- if($i <> 31) {
- echo "<option value=\"{$i}\" ";
- if ($i == $pconfig['subnet']) echo "selected=\"selected\"";
- echo ">" . $i . "</option>";
- }
+ echo "<option value=\"{$i}\" ";
+ if ($i == $pconfig['subnet']) echo "selected=\"selected\"";
+ echo ">" . $i . "</option>";
}
?>
</select>
@@ -2021,11 +2019,9 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
<select name="alias-subnet" class="formselect" id="alias-subnet">
<?php
for ($i = 32; $i > 0; $i--) {
- if($i <> 31) {
- echo "<option value=\"{$i}\" ";
- if ($i == $pconfig['alias-subnet']) echo "selected=\"selected\"";
- echo ">" . $i . "</option>";
- }
+ echo "<option value=\"{$i}\" ";
+ if ($i == $pconfig['alias-subnet']) echo "selected=\"selected\"";
+ echo ">" . $i . "</option>";
}
?>
</select>
OpenPOWER on IntegriCloud