From: Patrick McHardy <kaber@trash.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] howto spare the "tc filter" - lines with htb
Date: Mon, 29 Apr 2002 14:59:33 +0000 [thread overview]
Message-ID: <marc-lartc-102009243702292@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102018494810481@msgid-missing>
Hi :)
Tobias Geiger wrote:
> Hi,
>
> recently Martin explained, how to avoid these "tc filter" lines in our
> scripts.
> unfortunatly it doesn't work with my setup.
> i add a "dummy" tc filter - line:
>
> tc filter add dev imq1 parent 10:0 protocol ip prio 1 handle 1 fw classid 10:10
>
> which of course works, but i have no fwmark "1", but as i thought it's
> just a "dummy" -line for tc filter to work, i gues/think that's ok.
>
> further i just set marks with iptables, and generate the right
> qdiscs/classes for them:
>
> ack=0x00100010 # for classid 10:10
> high=0x00100011 # 10:11
> norm=0x00100012 # and so
> low=0x00100013 # on
>
I guess the problem are the encoded id's, in my opinion they have to be
calculated like this:
(classid << 16) + leafid
So 10:10 would translate to 655370 decimal or 0xa000a hex.
bye,
patrick
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2002-04-29 14:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1980-01-03 23:25 [LARTC] howto spare the "tc filter" - lines with htb Stef Coene
2002-04-29 14:28 ` Tobias Geiger
2002-04-29 14:59 ` Patrick McHardy [this message]
2002-04-29 15:29 ` Tobias Geiger
2002-04-30 9:33 ` Nils Lichtenfeld
2002-04-30 10:27 ` Tobias Geiger
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=marc-lartc-102009243702292@msgid-missing \
--to=kaber@trash.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.