Re: marked packets end up in wrong class

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux