Skip to contentSkip to conversation

I need help with tc filters!!!!!

LARTC Luciana Esteves Neves Hilario 2 participants 2 messages Jul 14, 2006 – Jul 18, 2006

lore
Share & tools
lore
#0 lore raw

Hi Everybody!

I need help! I'm doing a tc script with tc filters that have match the Type of Service field in the IP header. This is the script I am using to setup the filters.

tc filter add dev $DEV parent 1: protocol ip prio $PRIO_CONTROL u32 match ip protocol 6 0xff \

match u32 00190000 00ff0000 at 0 flowid 1:10

tc filter add dev $DEV protocol ip parent 1: prio $PRIO_VIDEO u32 match ip protocol 17 0xff \

match u32 001b0000 00ff0000 at 0 \

police rate ${VIDEO_LEVEL_0_BW}kbit buffer ${VIDEO_BUFFER}k drop flowid 1:13

tc filter add dev $DEV protocol ip parent 1: prio $PRIO_VIDEO u32 match ip protocol 17 0xff \

match u32 000b0000 00ff0000 at 0 \

police rate ${VIDEO_LEVEL_1_BW}kbit buffer ${VIDEO_BUFFER}k drop flowid 1:14

tc filter add dev $DEV protocol ip parent 1: prio $PRIO_VIDEO u32 match ip protocol 17 0xff \

match u32 00130000 00ff0000 at 0 \

police rate ${VIDEO_LEVEL_2_BW}kbit buffer ${VIDEO_BUFFER}k drop flowid 1:15

tc filter add dev $DEV protocol ip parent 1: prio $PRIO_VIDEO u32 match ip protocol 17 0xff \

match u32 00030000 00ff0000 at 0 \

police rate ${VIDEO_LEVEL_3_BW}kbit buffer ${VIDEO_BUFFER}k drop flowid 1:16

Please, if someone could help me, I will be so glad! The role script is the file attached

Thanks a lot

Luciana

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

#1 lore raw
Quoted 7 lines · Luciana Esteves Neves Hilario

Hi Everybody!

I need help! I'm doing a tc script with tc filters that have match the Type of Service field in the IP header. This is the script I am using to setup the filters.

tc filter add dev $DEV parent 1: protocol ip prio $PRIO_CONTROL u32 match ip protocol 6 0xff \

match u32 00190000 00ff0000 at 0 flowid 1:10

You don't say what the problem is - If it's that the tos doesn't match it may be because the last bit is supposed to be cleared/unused and you are matching set?

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