Skip to contentSkip to conversation

u32 classifier

LARTC Christian Benvenuti 2 participants 2 messages Jun 11, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

Quoted 9 lines
Quoted 5 lines · ladSun

11:1 is not your root class, right?

If so, try to apply the filter to root class - i.e. something like

tc filter add dev eth1 parent 1:0 protocol ip handle 1 fw classid 11:2

11:0 is my root class, and the line is (as I write below):
#tc filter add dev eth1 parent 11:0 protocol ip handle 1 fw classid 11:2

Do you mean to say that the handle of the root _qdisc_ is 11:0? (I could not find that configuration command in your email)

Is the traffic that should match the filter going through the qdisc at all? (you can check the qdisc counters)

If it is, then maybe there is another filter (with higher priority?) that catches the packets earlier. Can it be the case?

Regards
/Christian
[ http://benve.info ]

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 8 lines · Christian Benvenuti

Do you mean to say that the handle of the root _qdisc_ is 11:0? (I could not find that configuration command in your email)

Is the traffic that should match the filter going through the qdisc at all? (you can check the qdisc counters)

If it is, then maybe there is another filter (with higher priority?) that catches the packets earlier. Can it be the case?

No, none of this was the cause. I think that was fw filter. I've changed to u32 and everything works fine:

Before:
#tc filter add dev eth1 parent 11:0 protocol ip handle 1 fw classid 11:2

After:
#tc filter add dev eth1 parent 11:0 protocol ip prio 1 u32 match ip dst 192.168.10.0/24 match mark 1 0xffff flowid 11:2

Cheers,

Signature · 6 lines
Catalin Bucur      mailto:[email protected]
NOC @ Genius Network SRL - Galati - Romania
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc