1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2005 U.S. Robotics Corporation.
7 <meta http-equiv="Pragma" content="no-cache">
9 <link href="usr_menus.css" rel="stylesheet" type="text/css">
10 <script src="usr_menus.js" type="text/javascript"></script>
11 <script src="usr_menus_build.js" type="text/javascript"></script>
12 <link href="usr_main.css" rel="stylesheet" type="text/css">
13 <script src="usr_common.js" type="text/javascript"></script>
15 <script type="text/javascript" src="util.js"></script>
16 <script type="text/javascript" src="portName.js"></script>
17 <script type="text/javascript">
19 setPageTitle("<%ejGetWlJS(wlInterface)%>");
22 var loc = 'wlqos.cmd?action=editsubmit';
24 with ( document.forms[0] ) {
25 if ( txtclsname.value == '' ) {
26 alert('Please enter the QoS class name.');
30 if ( isValidName(txtclsname.value) == false ) {
31 alert("The QoS class name cannot use special characters.");
35 if ( srcaddr.value == "" && srcmask.value == "" && srcport.value == "" &&
36 dstaddr.value == "" && dstmask.value == "" && dstport.value == "" &&
37 protocol.selectedIndex < 0 ) {
38 alert("At least one condition must be specified.");
42 if ( srcaddr.value != "" && isValidIpAddress(srcaddr.value) == false ) {
43 alert('Source address "' + srcaddr.value + '" is an invalid IP address.');
47 if ( srcmask.value != "" && isValidSubnetMask(srcmask.value) == false ) {
48 alert('Source subnet mask "' + srcmask.value + '" is an invalid subnet mask.');
52 if ( srcaddr.value == "" && srcmask.value != "" ) {
53 alert('A source subnet mask requires a source IP address.');
57 if ( srcport.value != "" && isValidPort(srcport.value) == false ) {
58 alert('Source port "' + srcport.value + '" is an invalid port number or port range.');
62 if ( dstaddr.value != "" && isValidIpAddress(dstaddr.value) == false ) {
63 alert('Destination address "' + dstaddr.value + '" is an invalid IP address.');
67 if ( dstmask.value != "" && isValidSubnetMask(dstmask.value) == false ) {
68 alert('Destination subnet mask "' + dstmask.value + '" is an invalid subnet mask.');
72 if ( dstaddr.value == "" && dstmask.value != "" ) {
73 alert('A destination subnet mask requires a destination IP address.');
77 if ( dstport.value != "" && isValidPort(dstport.value) == false ) {
78 alert('Destination port "' + dstport.value + '" is an invalid port number or port range.');
82 if ( (srcport.value != "" || dstport.value != "") &&
83 (protocol.selectedIndex > 2) ) {
84 alert('TCP or UDP Protocol must be selected together with port number.');
89 loc += '&clsName=' + encodeUrl(txtclsname.value);
92 var idx = priority.selectedIndex;
93 var val = priority.options[idx].value;
94 loc += '&priority=' + val;
97 idx = protocol.selectedIndex;
98 val = protocol.options[idx].value;
99 loc += '&protocol=' + val;
102 if ( srcaddr.value != "" )
103 loc += '&srcAddr=' + srcaddr.value;
105 // source subnet mask
106 if ( srcmask.value != "" )
107 loc += '&srcMask=' + srcmask.value;
110 if ( srcport.value != "" )
111 loc += '&srcPort=' + srcport.value;
113 // destination address
114 if ( dstaddr.value != "" )
115 loc += '&dstAddr=' + dstaddr.value;
117 // destination subnet mask
118 if ( dstaddr.value != "" )
119 loc += '&dstMask=' + dstmask.value;
122 if ( dstport.value != "" )
123 loc += '&dstPort=' + dstport.value;
125 eval('location = "' + loc + '"');
131 <body onload="initMenu();">
133 <script type="text/javascript">
134 writeHeaderInfo("Add Wireless QoS Rule");
138 <p>A wireless QoS rule consists of a class name and at least one of the conditions below.
139 All of the specified conditions in this classification rule must be satisfied for the
141 Press the <b>Save</b> button to save and activate the rule.</p>
145 <td><label for="txtclsname">Traffic class name:</label></td>
146 <td><input type="text" size="22" maxlength="22" name="txtclsname" id="txtclsname"></td>
149 <td><label>Transmit priority:</label></td>
150 <td><select name="priority">
151 <option value="0" selected>0 - WMM Best Effort (default)</option>
152 <option value="1">1 - WMM Background</option>
153 <option value="2">2 - WMM Background</option>
154 <option value="3">3 - WMM Best Effort</option>
155 <option value="4">4 - WMM Video Priority</option>
156 <option value="5">5 - WMM Video Priority</option>
157 <option value="6">6 - WMM Voice Priority</option>
158 <option value="7">7 - WMM Voice Priority</option>
163 <td><select size="1" name="protocol">
164 <option value="0">TCP/UDP</option>
165 <option value="1">TCP</option>
166 <option value="2">UDP</option>
167 <option value="3">ICMP</option>
171 <td><label for="srcaddr">Source IP address:</td>
172 <td><input type="text" size="22" maxlength="22" name="srcaddr" id="srcaddr"></td>
175 <td><label for="srcmask">Source subnet mask:</td>
176 <td><input type="text" size="22" maxlength="22" name="srcmask" id="srcmask"></td>
179 <td><label for="srcport">UDP/TCP source port:</td>
180 <td><input type="text" size="22" maxlength="22" name="srcport" id="srcport"> <span class="clsNote">(port or port:port)</span></td>
183 <td><label for="dstaddr">Destination IP address:</td>
184 <td><input type="text" size="22" maxlength="22" name="dstaddr" id="dstaddr"></td>
187 <td><label for="dstmask">Destination subnet mask:</td>
188 <td><input type="text" size="22" maxlength="22" name="dstmask" id="dstmask"></td>
191 <td><label for="dstport">UDP/TCP destination port:</td>
192 <td><input type="text" size="22" maxlength="22" name="dstport" id="dstport"> <span class="clsNote">(port or port:port)</span></td>
196 <p><input type='button' onClick='btnApply()' value="Save"></p>
199 <script type="text/javascript">