From 3cb6ab8843b500a07b2984b3c964a2ae0d4f5c9e Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sun, 14 Aug 2005 04:51:22 +0000 Subject: Ticket #346: Duplicated WAN logic for MTU enforcement MTU must be between 576 and 1500 bytes --- usr/local/www/interfaces_opt.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr/local/www') 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? */ -- cgit v1.1