From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Sat, 05 May 2007 18:56:16 +0000 Subject: Re: [LARTC] tc u32 match !port Message-Id: <463CD350.3070606@andyfurniss.entadsl.com> 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 Salatiel Filho wrote: > Well , i am having a few troubles making this work. > I have some like this in pseudo tc rulez :) > Root class > Class 1 parent ROOT prio 0 filter u32 match sport 80 dst 10.0.0.254 > Class 2 paret ROOT prio 0 filter u32 match dport 22 > Class 3 parent ROOT prio 7 filter u32 match dst 10.0.0.254 > default > > Shouldn't traffic from source port 80 and destination 10.0.0.254 go > through class 1 ? > I can not make a way to this work, traffic to 10.0.0.254 is always > falling in to class 3 :/ > Am i missing something ? prio 1 is the top prio for filters 0 ends up much lower. I think two prio 1s should work in order of entry, but I would use 1 and 2 to be sure. I have seen reverse order of entry if you don't use prio at all ... tc -s filter ls dev $DEV parent X:Y should help you see what's going on. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc