diff options
author | Bill Marquette <billm@pfsense.org> | 2005-08-14 04:51:22 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-08-14 04:51:22 +0000 |
commit | 3cb6ab8843b500a07b2984b3c964a2ae0d4f5c9e (patch) | |
tree | 47909d7b4a005225c02e7cdeef9fbd6ee4bb8e47 /usr | |
parent | b8ecbeef5e1aad0a5120cac2847226918651f6da (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 4 |
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? */ |