summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
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:39:09 -0600
commitaac1c1db063964209f1c340f0d558d50f4dd1974 (patch)
treef8a68946b1bc36c6921bdef882855141eba0b6ee /usr/local/www/interfaces.php
parent564978ad5c28c4a28c5c426b59663d20d982f7c6 (diff)
downloadpfsense-aac1c1db063964209f1c340f0d558d50f4dd1974.zip
pfsense-aac1c1db063964209f1c340f0d558d50f4dd1974.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
Diffstat (limited to 'usr/local/www/interfaces.php')
-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