netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bert hubert <ahu@ds9a.nl>
To: netdev@oss.sgi.com
Cc: wa@almesberger.net
Subject: tc lockup on 2.4.19 up
Date: Mon, 8 Jul 2002 22:48:58 +0200	[thread overview]
Message-ID: <20020708204858.GA16318@outpost.ds9a.nl> (raw)

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

             reply	other threads:[~2002-07-08 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-08 20:48 bert hubert [this message]
2002-07-08 21:28 ` tc lockup on 2.4.19 up Werner Almesberger

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=20020708204858.GA16318@outpost.ds9a.nl \
    --to=ahu@ds9a.nl \
    --cc=netdev@oss.sgi.com \
    --cc=wa@almesberger.net \
    /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 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).