mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-29 11:04:03 +01:00
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:
parent
6b5493b81c
commit
679cff2779
@ -678,6 +678,8 @@ sub validate_tc_class( ) {
|
||||
$rate = convert_rate ( $full, $rate, 'RATE' );
|
||||
}
|
||||
|
||||
fatal_error "Invalid PRIO ($prio)" unless defined numeric_value $prio;;
|
||||
|
||||
$tcref->{$classnumber} = { tos => [] ,
|
||||
rate => $rate ,
|
||||
umax => $umax ,
|
||||
|
@ -1493,7 +1493,7 @@ ppp0 4 90kbit 200kbit 3 default
|
||||
eth0 1 100kbit 500kbit 1 tcp-ack
|
||||
eth0 2 3mbit 6mbit 2
|
||||
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
|
||||
# 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
|
||||
url="http://e2epi.internet2.edu/network-performance-toolkit.html">http://e2epi.internet2.edu/network-performance-toolkit.html</ulink></para>
|
||||
</section>
|
||||
</article>
|
||||
</article>
|
Loading…
Reference in New Issue
Block a user