problem using basic match meta protocol

"Chris Smith" <[email protected]> Wed, 6 Apr 2011 01:13:38 +0100
Newsgroups gmane.linux.network.general
Message-ID <[email protected]>
I'm trying to match IP packets using the following syntax: 

tc filter add dev eth0 parent 1: prio 1 protocol all basic match
'meta(protocol mask 0xffff eq 0x0800)' flowid 1:2

This commits ok, but when I look at the class using tc -s class show dev
eth0 it doesn't seem to actually match on the IP protocol

I've also tried 
tc filter add dev eth0 parent 1: prio 1 protocol all basic match
'meta(protocol mask 0x0 eq 0x0)' flowid 1:2

Which I would expect to match all protocols i.e. all packets.

But it appears as though no packets get matched at all.

Does anyone know what am I doing wrong?


--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html