summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-09-03 16:21:32 +0000
committerErmal Luçi <eri@pfsense.org>2008-09-03 16:21:32 +0000
commitc33e18c2320fa8d5ea9310e1964d15861883ff10 (patch)
treec9a3f8590270f22863960d78b7f8bc7c45668eb0 /usr/local/www
parent58fe7e2bb38541dc1e49013a322bd1b5aa1b702e (diff)
downloadpfsense-c33e18c2320fa8d5ea9310e1964d15861883ff10.zip
pfsense-c33e18c2320fa8d5ea9310e1964d15861883ff10.tar.gz
Allow to set the mtu higher than 1500 bytes on interfaces.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/interfaces.php4
-rwxr-xr-xusr/local/www/interfaces_wan.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index a674f3b..35d3af3 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -333,8 +333,8 @@ n already exists.";
if (($_POST['spoofmac'] && !is_macaddr($_POST['spoofmac']))) {
$input_errors[] = "A valid MAC address must be specified.";
}
- if ($_POST['mtu'] && (($_POST['mtu'] < 576) || ($_POST['mtu'] > 1500))) {
- $input_errors[] = "The MTU must be between 576 and 1500 bytes.";
+ if ($_POST['mtu'] && ($_POST['mtu'] < 576)) {
+ $input_errors[] = "The MTU must be greater than 576 bytes.";
}
}
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index a674f3b..35d3af3 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -333,8 +333,8 @@ n already exists.";
if (($_POST['spoofmac'] && !is_macaddr($_POST['spoofmac']))) {
$input_errors[] = "A valid MAC address must be specified.";
}
- if ($_POST['mtu'] && (($_POST['mtu'] < 576) || ($_POST['mtu'] > 1500))) {
- $input_errors[] = "The MTU must be between 576 and 1500 bytes.";
+ if ($_POST['mtu'] && ($_POST['mtu'] < 576)) {
+ $input_errors[] = "The MTU must be greater than 576 bytes.";
}
}
OpenPOWER on IntegriCloud