* [LARTC] HTB & police filters
@ 2002-04-10 14:22 Mihai RUSU
2002-04-10 17:45 ` Martin Devera
0 siblings, 1 reply; 2+ messages in thread
From: Mihai RUSU @ 2002-04-10 14:22 UTC (permalink / raw)
To: lartc
Hi
Im playing with HTB and police filters. It seems that the drop action
doesnt work with htb (I think it sends the traffic to the "default"
configured class).
#!/bin/bash
tc=/sbin/tc
$tc qdisc del dev eth0 root
$tc qdisc add dev eth0 root handle 1: htb default 20
$tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit burst 15k
$tc class add dev eth0 parent 1:1 classid 1:10 htb rate 128Kbit burst 15k
$tc class add dev eth0 parent 1:1 classid 1:20 htb rate 256Kbit ceil 100Mbit burst 15k
$tc class add dev eth0 parent 1:10 classid 1:100 htb rate 64Kbit burst 15k
$tc class add dev eth0 parent 1:10 classid 1:200 htb rate 128Kbit burst 15k
$tc filter add dev eth0 protocol ip parent 1: pref 5 u32 match ip dst \
1.2.3.4 flowid 1:200 police drop rate 64Kbit burst 15k
It seems that the filter matches the defined rate and calls enqueue() for
class 1:200, but after that the overlimit traffic it sends to the
"default" 1:20 defined htb class. If I want this I could use "continue"
but NOT drop. Is this a bug? :)
----------------------------
Mihai RUSU
Disclaimer: Any views or opinions presented within this e-mail are solely
those of the author and do not necessarily represent those of any company,
unless otherwise specifically stated.
_______________________________________________
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] HTB & police filters
2002-04-10 14:22 [LARTC] HTB & police filters Mihai RUSU
@ 2002-04-10 17:45 ` Martin Devera
0 siblings, 0 replies; 2+ messages in thread
From: Martin Devera @ 2002-04-10 17:45 UTC (permalink / raw)
To: lartc
> Im playing with HTB and police filters. It seems that the drop action
> doesnt work with htb (I think it sends the traffic to the "default"
> configured class).
ohh yes you are probably rigght. I'll try to make it better in
the nest release.
devik
_______________________________________________
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:[~2002-04-10 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-10 14:22 [LARTC] HTB & police filters Mihai RUSU
2002-04-10 17:45 ` Martin Devera
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.