Re: iptables mark and u32 filter

Linux Advanced Routing and Traffic Control

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

 



Ethy H. Brito wrote:
Hi All

I'd like to use an iptables mark together with u32 filter. Something like this, for instance:

tc filter add dev imq0 protocol ip parent 1:0\
prio 2 handle 55\
u32 match u8 1 0xff at 0x09 flowid 1:22

(all icmp packets marked with 55 goes to class 1:22)

But I got 'Illegal filter ID' as answer. Is this combination possible?


You missed fw - handle 55 fw should match mark 55 but it still may not work unless alone.

Instead use ... match mark 55 0xffffffff ... (you can get away with less "f"s for the mask depending on your highest mark value.

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