All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Some good news - Strange behavior deleting filters
@ 2004-01-09 19:08 Andre Correa
  2004-01-10 22:06 ` Rodrigo P. Telles
  0 siblings, 1 reply; 2+ messages in thread
From: Andre Correa @ 2004-01-09 19:08 UTC (permalink / raw)
  To: lartc


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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Some good news - Strange behavior deleting filters
  2004-01-09 19:08 [LARTC] Some good news - Strange behavior deleting filters Andre Correa
@ 2004-01-10 22:06 ` Rodrigo P. Telles
  0 siblings, 0 replies; 2+ messages in thread
From: Rodrigo P. Telles @ 2004-01-10 22:06 UTC (permalink / raw)
  To: lartc

-----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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-10 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-09 19:08 [LARTC] Some good news - Strange behavior deleting filters Andre Correa
2004-01-10 22:06 ` Rodrigo P. Telles

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.