summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-08 13:20:12 +0000
committerErmal <eri@pfsense.org>2013-03-08 13:20:12 +0000
commitb783eaf2de362baccd4974d28051d2a2d75cd001 (patch)
tree399358e7cf9fba1f95a68954a4dbff3ecce5bc7a /usr
parenta362a23a829f5c5ebeb3fb319272592711e2ea02 (diff)
downloadpfsense-b783eaf2de362baccd4974d28051d2a2d75cd001.zip
pfsense-b783eaf2de362baccd4974d28051d2a2d75cd001.tar.gz
Prevent mtu bigger than 9000
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 0285a48..f34f0b1 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -633,7 +633,7 @@ if ($_POST['apply']) {
if (($_POST['spoofmac'] && !is_macaddr($_POST['spoofmac'])))
$input_errors[] = gettext("A valid MAC address must be specified.");
if ($_POST['mtu']) {
- if ($_POST['mtu'] < 576)
+ if ($_POST['mtu'] < 576 || $_POST['mtu'] > 9000)
$input_errors[] = gettext("The MTU must be greater than 576 bytes.");
if (preg_match('/_vlan[0-9]/', $wancfg['if'])) {
OpenPOWER on IntegriCloud