mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-16 17:51:16 +01:00
Clarify mark value<->minor classid relationship
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5014 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
b8c694e86f
commit
4f2dc55435
@ -178,15 +178,18 @@ tcp 6 269712 ESTABLISHED src=192.168.3.8 dst=206.124.146.177 sport=50584 dp
|
||||
does) by specifying a <firstterm>classid</firstterm> of the form
|
||||
<number>:<number> in the MARK column. That is the
|
||||
preferred method. A classid is specified when a traffic shaping
|
||||
class is defined. tc4shorewall assigns a classid of 1:<100 +
|
||||
mark value>. They may also be classified using an
|
||||
<firstterm>fwmark classifier</firstterm> which causes the traffic
|
||||
shaping code to classify the traffic based in the packet mark
|
||||
value. That is done by the traffic shaping solution using the
|
||||
<command>tc filter add</command> command. The built-in
|
||||
tc4shorewall shaper uses this command so if you are using the
|
||||
built-in traffic shaping solution, you may use either
|
||||
method.</para>
|
||||
class is defined. tc4shorewall assigns a classid of <device
|
||||
number>:1<mark value>. The first device in
|
||||
<filename>/etc/shorewall/tcdevices</filename> is device number 1,
|
||||
the second is device number 2, and so on. For the first device,
|
||||
mark value 1 is classid 1:11, mark value 22 is classid 1:122,
|
||||
etc.. They may also be classified using an <firstterm>fwmark
|
||||
classifier</firstterm> which causes the traffic shaping code to
|
||||
classify the traffic based in the packet mark value. That is done
|
||||
by the traffic shaping solution using the <command>tc filter
|
||||
add</command> command. The built-in tc4shorewall shaper uses this
|
||||
command so if you are using the built-in traffic shaping solution,
|
||||
you may use either method.</para>
|
||||
</footnote>.</para>
|
||||
</listitem>
|
||||
|
||||
|
@ -550,7 +550,9 @@ ppp0 6000kbit 500kbit</programlisting>
|
||||
builtin traffic shaper, the <major> class is the device number
|
||||
(the first entry in <filename>/etc/shorewall/tcdevices</filename> is
|
||||
device 1, the second is device 2 and so on) and the <minor>
|
||||
class is the MARK value of the class + 100.</para>
|
||||
class is the MARK value of the class preceded by the number "1"
|
||||
(MARK value 1 is <minor> class 11, MARK value 22 is
|
||||
<minor> class 122, and so on).</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
|
Loading…
Reference in New Issue
Block a user