mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-29 19:13:39 +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' );
|
$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 ,
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user