1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML
4.0//EN'
>
4 Copyright (C) 2006-2010 Jonathan Zarate
5 http://www.polarcloud.com/tomato/
7 For use with Tomato Firmware only.
8 No part of this file may be used without permission.
12 <meta http-equiv='content-type' content='text/html;charset=utf-
8'
>
13 <meta name='robots' content='noindex,nofollow'
>
14 <title>[<%
ident(); %>] Advanced: Miscellaneous
</title>
15 <link rel='stylesheet' type='text/css' href='tomato.css'
>
16 <link rel='stylesheet' type='text/css' href='color.css'
>
17 <script type='text/javascript' src='tomato.js'
></script>
21 <script type='text/javascript' src='debug.js'
></script>
23 <script type='text/javascript'
>
25 // <% nvram("t_features,wait_time,wan_speed,clkfreq,jumbo_frame_enable,jumbo_frame_size,ctf_disable"); %>
27 et1000
= features('1000et');
29 function verifyFields(focused
, quiet
)
31 E('_jumbo_frame_size').disabled
= !E('_f_jumbo_frame_enable').checked
;
38 fom
.jumbo_frame_enable
.value
= E('_f_jumbo_frame_enable').checked
? 1 : 0;
40 fom
.ctf_disable
.value
= E('_f_ctf_disable').checked
? 0 : 1;
43 if ((fom
.wan_speed
.value
!= nvram
.wan_speed
) ||
45 (fom
.ctf_disable
.value
!= nvram
.ctf_disable
) ||
47 (fom
.jumbo_frame_enable
.value
!= nvram
.jumbo_frame_enable
) ||
48 (fom
.jumbo_frame_size
.value
!= nvram
.jumbo_frame_size
)) {
49 fom
._reboot
.value
= '1';
60 <form id='_fom' method='post' action='tomato.cgi'
>
61 <table id='container' cellspacing=
0>
62 <tr><td colspan=
2 id='header'
>
63 <div class='title'
>Tomato
</div>
64 <div class='version'
>Version <%
version(); %></div>
66 <tr id='body'
><td id='navi'
><script type='text/javascript'
>navi()</script></td>
68 <div id='ident'
><%
ident(); %></div>
72 <input type='hidden' name='_nextpage' value='advanced-misc.asp'
>
73 <input type='hidden' name='_reboot' value='
0'
>
75 <input type='hidden' name='jumbo_frame_enable'
>
77 <input type='hidden' name='ctf_disable'
>
80 <div class='section-title'
>Miscellaneous
</div>
82 <script type='text/javascript'
>
84 for (i
= 3; i
<= 20; ++i
) a
.push([i
, i
+ ' seconds']);
85 createFieldTable('', [
86 { title
: 'Boot Wait Time *', name
: 'wait_time', type
: 'select', options
: a
, value
: fixInt(nvram
.wait_time
, 3, 20, 3) },
87 { title
: 'WAN Port Speed *', name
: 'wan_speed', type
: 'select', options
: [[0,'10Mb Full'],[1,'10Mb Half'],[2,'100Mb Full'],[3,'100Mb Half'],[4,'Auto']], value
: nvram
.wan_speed
},
88 { title
: 'CPU Frequency **', name
: 'clkfreq', type
: 'select', options
: [['','Default'],['188,94'],['200,100'],['216,108'],['240,120'],['250,125'],['266,133'],['300,150'],['354,177'],['400,200'],['453,226'],['480,240'],['500,250'],['532,266']], value
: nvram
.clkfreq
},
93 { title
: 'CTF (Cut-Through Forwarding)', name
: 'f_ctf_disable', type
: 'checkbox', value
: nvram
.ctf_disable
!= '1' },
97 { title
: 'Enable Jumbo Frames *', name
: 'f_jumbo_frame_enable', type
: 'checkbox', value
: nvram
.jumbo_frame_enable
!= '0', hidden
: !et1000
},
98 { title
: 'Jumbo Frame Size *', name
: 'jumbo_frame_size', type
: 'text', maxlen
: 4, size
: 6, value
: fixInt(nvram
.jumbo_frame_size
, 1, 9720, 2000),
99 suffix
: ' <small>Bytes (range: 1 - 9720; default: 2000)</small>', hidden
: !et1000
}
110 * Not all models support these options
<br>
111 ** You must reboot the router for the new clock frequency to take effect
114 <b>Please check to make sure your router can support these changes before you commit them
</b><br>
123 <tr><td id='footer' colspan=
2>
124 <span id='footer-msg'
></span>
125 <input type='button' value='Save' id='save-button' onclick='save()'
>
126 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'
>
130 <script type='text/javascript'
>verifyFields(null, 1);</script>