Skip to contentSkip to conversation

Advanced routing (Tc filter)

LARTC Zein Wali 1 participant 1 message Jul 13, 2002

lore
Share & tools
lore

Zein Wali

author
#0 lore raw

Greetings,

I am working in a project , and we are concerned about usin Traffic Conrol tool in iproute2 package, but unfortunately we are facing some problems using u32 filters to match the ip protocol. Frankly we used:

 # tc filter add dev eth0 parent 1:0 protocol ip pref 2 u32 match ip protocol
 1 0xff classid 1:4 ( to match icmp protocol )

and then we tried to use

 # tc filter add dev eth0 parent 1:0 protocol ip pref 2 u32 match u32
 00010000 00ff0000 at 8 flowid 1:4 (to match icmp too)
 and it also failed

so we need your help URGENTLY PLEASE !!
Thanks a lot and best regards