From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Tue, 06 May 2003 17:27:33 +0000 Subject: Re: [LARTC] u32 filter Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Tuesday 06 May 2003 13:10, Vitor Carlos Flausino wrote: > Hi all. > > I have the following queue: > > > tc qdisc add dev eth0 root handle 1:0 htb default 15 > > > tc class add dev eth0 parent 1:0 classid 1:1 htb rate 100mbit ceil 100mbit > > tc class add dev eth0 parent 1:1 classid 1:7 htb rate 64kbit ceil 64kbit > tc class add dev eth0 parent 1:1 classid 1:15 htb rate 102336kbit ceil > 100mbit > > tc qdisc add dev eth0 parent 1:7 handle 10:0 sfq perturb 10 > tc qdisc add dev eth0 parent 1:15 handle 20:0 sfq perturb 10 > > Now, my question is, the filter should be: > > tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip > 57.227.234.22 flowid 1:7 > > or, > > tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip > 57.227.234.22 flowid 10:0 > > ? > > What about the default? The default is the minor number, so the second number in 1:15. So 15 like you did. For the filter, 10:0 is connected to 1:7. So all traffic placed in 1:7 flows through 10:0. So the filter should point to 1:7. So the first filter rule is the one you need. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/