On 6/27/07, Martija, Ricardo V <rmartija@telcordia.com>
wrote:>
>
>
>
> Hi,
>
>
>
> I am very new to tc. I added a filter using the following command:
>
>
>
> tc filter add dev eth0 V parent 20:0 protocol ip prio 1 handle ::128 u32
> match ip tos 0x44 0xfc flowid 20:1
>
tc filter add dev eth0 V parent 20:0 protocol ip pref 1234 prio 1
handle ::128 u32 match ip tos 0x44 0xfc flowid 20:1
>
>
> To check if the filter rule was indeed added, I run
>
>
>
> tc filter show dev eth0 parent 20:
>
>
>
> This gave me the following output:
>
>
>
> filter protocol ip pref 1 u32
>
> filter protocol ip pref 1 u32 fh 800: ht divisor 1
>
> filter protocol ip pref 1 u32 fh 800::128 order 296 key ht 800 bkt 0
> flowid 20:1
>
> match 00440000/00fc0000 at 0
>
>
>
> I tried deleting the filter rule that I added using:
>
>
>
> tc filter del dev eth0 pref 1 protocol ip handle 800::160
>
tc filter del dev eth0 pref 1234
>
>
> This gave me the following message:
>
>
>
> Must specify filter type when using "handle"
>
>
>
> I modified the delete command, as follows:
>
>
>
> tc filter del dev eth0 pref 1 protocol ip handle 800::160 u32
>
>
>
> This gave the following error message:
>
>
>
> RTNETLINK answers: Invalid argument
>
>
>
> I am pretty much stumped. Can anyone tell me how I can delete a tc filter
> rule?
>
>
>
> Thanks,
>
>
>
> Rick
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
>
>
--
Marco Casaroli
SapucaiNet Telecom
+55 35 34712377 ext 5