summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/setup_wizard.xml
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-25 10:46:19 -0400
committerjim-p <jimp@pfsense.org>2010-06-25 11:29:11 -0400
commit5fe3b65184ff67709c9b7b8b8712301664b2bb73 (patch)
tree40c38f9eee8147f1ae32b6970fa6e35e76568462 /usr/local/www/wizards/setup_wizard.xml
parentcf7ac033abed3fb70cf33839f266a3471f38dbc7 (diff)
downloadpfsense-5fe3b65184ff67709c9b7b8b8712301664b2bb73.zip
pfsense-5fe3b65184ff67709c9b7b8b8712301664b2bb73.tar.gz
Validate MTU in setup wizard. Ticket #464
Diffstat (limited to 'usr/local/www/wizards/setup_wizard.xml')
-rw-r--r--usr/local/www/wizards/setup_wizard.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index 64ffef1..485b2d2 100644
--- a/usr/local/www/wizards/setup_wizard.xml
+++ b/usr/local/www/wizards/setup_wizard.xml
@@ -328,6 +328,16 @@
<type>submit</type>
</field>
</fields>
+ <stepsubmitphpaction>
+ <![CDATA[
+ if(!empty($_POST['mtu'])) {
+ if($_POST['mtu'] < 576) {
+ print_info_box_np("MTU Must be at least 576 (Per RFC 791). Please press back in your browser window and correct.");
+ die;
+ }
+ }
+ ]]>
+ </stepsubmitphpaction>
<stepsubmitbeforesave>
<![CDATA[
if($_POST['selectedtype'] == "Static") {
@@ -428,3 +438,4 @@
</stepafterformdisplay>
</step>
</pfsensewizard>
+
OpenPOWER on IntegriCloud