From: "Rodrigo P. Telles" <telles@devel-it.com.br>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Some good news - Strange behavior deleting filters
Date: Sat, 10 Jan 2004 22:06:42 +0000 [thread overview]
Message-ID: <40007772.1060600@devel-it.com.br> (raw)
In-Reply-To: <3FFEFC28.9070301@pobox.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andre,
Very good, I tried that too and its work :-)
Note: I'm using kernel 2.4.21.
Telles
Andre Correa wrote:
|
| Hi list,
|
| I've got a private e-mail from O. Brewer pointing something important
| that we hadn't figured out yet:
|
| tc qdisc del dev eth1 root
| tc qdisc add dev eth1 root handle 1:0 htb
| tc class add dev eth1 parent 1:0 classid 1:1 htb rate 1mbit
| tc class add dev eth1 parent 1:0 classid 1:2 htb rate 1mbit
| tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle ::10 u32
| match ip src 10.10.10.10 classid 1:1
| tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle ::11 u32
| match ip src 10.10.10.11 classid 1:2
|
|
| tc -r filter show dev eth1 parent 1:
| filter protocol ip pref 1 u32 filter protocol ip pref 1 u32 fh
| 800:[80000000] ht divisor 1 filter protocol ip pref 1 u32 fh
| 800::10[80000010] order 16 key ht 800 bkt 0 flowid 1:1 match
| 0a0a0a0a/ffffffff at 12
| filter protocol ip pref 1 u32 fh 800::11[80000011] order 17 key ht 800
| bkt 0 flowid 1:2 match 0a0a0a0b/ffffffff at 12
|
| tc filter del dev eth1 parent 1: protocol ip prio 1 handle 800::11 u32
|
| tc -r filter show dev eth1 parent 1:
| filter protocol ip pref 1 u32 filter protocol ip pref 1 u32 fh
| 800:[80000000] ht divisor 1 filter protocol ip pref 1 u32 fh
| 800::10[80000010] order 16 key ht 800 bkt 0 flowid 1:1 match
| 0a0a0a0a/ffffffff at 12
|
| as we expect...
|
| So we figure out that using handle and u32 in the end of our command
| line works fine. Good... There is still a lot of trouble to figure out
| what is the value of handle XXX::yy when it is a script that manages
| filters, but it is better then nothing...
|
| tks for pointing this out Orlie...
|
| Anybody else replicated the behavior? Does anybody know is tc
| development is taking place?
|
| tks a lot...
|
| Andre
| _______________________________________________
| LARTC mailing list / LARTC@mailman.ds9a.nl
| http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
|
|
- --
- ------------------------------------------------------
Rodrigo P. Telles <telles@devel-it.com.br>
Gerente de Projetos - http://www.devel-it.com.br
Devel-IT - Uma empresa do Grupo TDKOM
- ------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAAHdyiLK8unYgEMQRAnpvAJ9jyj2AJJDwrPZLdJMnXiuIJ4qqyQCePOjC
XLtX5GIX2SnByWadnTU1QwQ=zlOC
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2004-01-10 22:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-09 19:08 [LARTC] Some good news - Strange behavior deleting filters Andre Correa
2004-01-10 22:06 ` Rodrigo P. Telles [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=40007772.1060600@devel-it.com.br \
--to=telles@devel-it.com.br \
--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.