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:
teastep 2006-11-28 16:13:36 +00:00
parent b8c694e86f
commit 4f2dc55435
2 changed files with 15 additions and 10 deletions

View File

@ -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
&lt;number&gt;:&lt;number&gt; 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:&lt;100 +
mark value&gt;. 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 &lt;device
number&gt;:1&lt;mark value&gt;. 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>

View File

@ -550,7 +550,9 @@ ppp0 6000kbit 500kbit</programlisting>
builtin traffic shaper, the &lt;major&gt; 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 &lt;minor&gt;
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 &lt;minor&gt; class 11, MARK value 22 is
&lt;minor&gt; class 122, and so on).</para>
</listitem>
<listitem>