From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] can I use tos and fwmark at the same time?
Date: Tue, 06 Dec 2005 15:09:54 +0000 [thread overview]
Message-ID: <4395A9C2.6030206@dsl.pipex.com> (raw)
In-Reply-To: <20051115134253.6020.qmail@web32603.mail.mud.yahoo.com>
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
prev parent reply other threads:[~2005-12-06 15:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-15 13:42 [LARTC] can I use tos and fwmark at the same time? panca sorin
2005-12-06 2:07 ` Andy Furniss
2005-12-06 9:50 ` psihozefir
2005-12-06 15:09 ` Andy Furniss [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4395A9C2.6030206@dsl.pipex.com \
--to=andy.furniss@dsl.pipex.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox