summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-08-14 04:51:22 +0000
committerBill Marquette <billm@pfsense.org>2005-08-14 04:51:22 +0000
commit3cb6ab8843b500a07b2984b3c964a2ae0d4f5c9e (patch)
tree47909d7b4a005225c02e7cdeef9fbd6ee4bb8e47 /usr/local/www
parentb8ecbeef5e1aad0a5120cac2847226918651f6da (diff)
downloadpfsense-3cb6ab8843b500a07b2984b3c964a2ae0d4f5c9e.zip
pfsense-3cb6ab8843b500a07b2984b3c964a2ae0d4f5c9e.tar.gz
Ticket #346: Duplicated WAN logic for MTU enforcement
MTU must be between 576 and 1500 bytes
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/interfaces_opt.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index e6a54bc..444b043 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -134,6 +134,10 @@ if ($_POST) {
$input_errors[] = "A valid subnet bit count must be specified.";
}
}
+ if ($_POST['mtu'] && (($_POST['mtu'] < 576) || ($_POST['mtu'] > 1500))) {
+ $input_errors[] = "The MTU must be between 576 and 1500 bytes.";
+ }
+
}
/* Wireless interface? */
OpenPOWER on IntegriCloud