Correct example in the docs and ensure that future idiots don't place 'default' in the PRIO column of tcclasses

This commit is contained in:
Tom Eastep 2009-08-23 20:45:05 -07:00
parent 6b5493b81c
commit 679cff2779
2 changed files with 4 additions and 2 deletions

View File

@ -678,6 +678,8 @@ sub validate_tc_class( ) {
$rate = convert_rate ( $full, $rate, 'RATE' ); $rate = convert_rate ( $full, $rate, 'RATE' );
} }
fatal_error "Invalid PRIO ($prio)" unless defined numeric_value $prio;;
$tcref->{$classnumber} = { tos => [] , $tcref->{$classnumber} = { tos => [] ,
rate => $rate , rate => $rate ,
umax => $umax , umax => $umax ,

View File

@ -1493,7 +1493,7 @@ ppp0 4 90kbit 200kbit 3 default
eth0 1 100kbit 500kbit 1 tcp-ack eth0 1 100kbit 500kbit 1 tcp-ack
eth0 2 3mbit 6mbit 2 eth0 2 3mbit 6mbit 2
eth0 3 3mbit 6mbit 3 eth0 3 3mbit 6mbit 3
eth0 4 94mbit full default #for local traffic</programlisting></para> eth0 4 94mbit full 4 default #for local traffic</programlisting></para>
<para>/etc/shorewall/tcrules:<programlisting>#MARK SOURCE DEST PROTO PORT(S) CLIENT USER <para>/etc/shorewall/tcrules:<programlisting>#MARK SOURCE DEST PROTO PORT(S) CLIENT USER
# PORT(S) # PORT(S)
@ -2038,4 +2038,4 @@ class htb 1:120 parent 1:1 leaf 120: prio 2 quantum 1900 rate 76000bit ceil 2300
<para>At least one Shorewall user has found this tool helpful: <ulink <para>At least one Shorewall user has found this tool helpful: <ulink
url="http://e2epi.internet2.edu/network-performance-toolkit.html">http://e2epi.internet2.edu/network-performance-toolkit.html</ulink></para> url="http://e2epi.internet2.edu/network-performance-toolkit.html">http://e2epi.internet2.edu/network-performance-toolkit.html</ulink></para>
</section> </section>
</article> </article>