* tc lockup on 2.4.19 up
@ 2002-07-08 20:48 bert hubert
2002-07-08 21:28 ` Werner Almesberger
0 siblings, 1 reply; 2+ messages in thread
From: bert hubert @ 2002-07-08 20:48 UTC (permalink / raw)
To: netdev; +Cc: wa
Hi,
While writing a chapter on tcng (USE IT!), I made this setup, which locks up
my 2.4.19-pre10 laptop solidly after a single packet matched:
#include "fields.tc"
dev eth0
{
cbq (bandwidth 100Mbps, maxburst 5p, avpkt 1000B, allot 1500B){
class (2, rate 10kBps, bounded)
if ip_dst == 213.244.168.210 && ip_tos!=0x10;
}
}
which translates into:
tc qdisc add dev eth0 handle 1:0 root cbq bandwidth 12500000bps avpkt 1000
tc class add dev eth0 parent 1:0 classid 1:2 cbq bandwidth 12500000bps rate \
10000bps allot 1500 avpkt 1000 maxburst 5 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 1 handle 1:0:0 u32 \
divisor 1
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match u32 \
0xd5f4a8d2 0xffffffff at 16 match u8 0x10 0xff at 1 classid 1:0
########
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match u32 \
0xd5f4a8d2 0xffffffff at 16 classid 1:2
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match u32 0 0 at 0 \
classid 1:0
The lines up to #### suffice to lock up the machine upon a ssh keystroke to
213.244.168.210 - the last line is supposed to match on an ssh keystroke.
I think the rule gets matched circularly, but I'm unsure.
Please let me know - I can investigate more later on if I can reproduce this
in uml.
Regards,
bert hubert
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: tc lockup on 2.4.19 up
2002-07-08 20:48 tc lockup on 2.4.19 up bert hubert
@ 2002-07-08 21:28 ` Werner Almesberger
0 siblings, 0 replies; 2+ messages in thread
From: Werner Almesberger @ 2002-07-08 21:28 UTC (permalink / raw)
To: bert hubert, netdev
bert hubert wrote:
> I think the rule gets matched circularly, but I'm unsure.
Indeed. Happens with tcsim too.
I need to think a bit about this one. As a work-around, you can use
tcc with -One, which generates a bunch of tests for equality instead
of the single negation.
Thanks,
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net /
/_http://icapeople.epfl.ch/almesber/_____________________________________/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-08 21:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-08 20:48 tc lockup on 2.4.19 up bert hubert
2002-07-08 21:28 ` Werner Almesberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).