From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Tue, 06 Dec 2005 15:09:54 +0000 Subject: Re: [LARTC] can I use tos and fwmark at the same time? Message-Id: <4395A9C2.6030206@dsl.pipex.com> List-Id: References: <20051115134253.6020.qmail@web32603.mail.mud.yahoo.com> In-Reply-To: <20051115134253.6020.qmail@web32603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org psihozefir wrote: > I pasted the script from kwrite to Mozilla suite composer. I don't > know why there are no CRs. :( > I know that applications set the tos field (and I hope programmers > know if they are supposed to set it or not, and that they don't > cheat). I rely on this. > I will correct the prio error. My question still remains: is it > possible to use tos AND fwmark in the same rule (and the effect be an > AND - like in iptables, not an OR)? Yes you just make it part of the same filter - though I couldn't get it to work with handle X fw. You can do it like this - tc filter add dev $DEV parent $WHATEVER protocol ip prio 1 u32 match ip tos 0x10 0xff match mark 1 0xffffffff flowid $MYID. Another way would be to setup a tree structure. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc