From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Fri, 11 Nov 2005 16:10:21 +0000 Subject: Re: [LARTC] marked packets end up in wrong class Message-Id: <4374C26D.2040603@dsl.pipex.com> List-Id: References: <48338.192.16.127.216.1131718875.squirrel@webmail.sys.kth.se> In-Reply-To: <48338.192.16.127.216.1131718875.squirrel@webmail.sys.kth.se> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org David Blomberg wrote: > Hello, > > I have recently started looking at tc and iptables. I have an htb-queue > with two classes 1:10 and 1:20 where 1:20 is the default. Then I use > iptables to mark all packets I send out on eth1. I then filter marked > packets into class 1:10. I expected all packets sent on eth1 to end up in > class 1:10, but some packets still go to 1:20. Did I do it wrong? > qdisc sfq 20: parent 1:20 limit 128p quantum 1514b perturb 10sec > Sent 1386 bytes 33 pkt (dropped 0, overlimits 0 requeues 0) It's arp, iptables only sees ip traffic. If you don't specify an htb default it will pass unshaped (It would get dropped with hfsc). If you use a default class then I would use a tc filter ... protocol arp u32 match u32 0 0 .... to send it to a high prio/interactive class. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc