From: Andre Correa <andre.correa@pobox.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Some good news - Strange behavior deleting filters
Date: Fri, 09 Jan 2004 19:08:24 +0000 [thread overview]
Message-ID: <3FFEFC28.9070301@pobox.com> (raw)
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/
next reply other threads:[~2004-01-09 19:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-09 19:08 Andre Correa [this message]
2004-01-10 22:06 ` [LARTC] Some good news - Strange behavior deleting filters Rodrigo P. Telles
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=3FFEFC28.9070301@pobox.com \
--to=andre.correa@pobox.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 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.