LARTC
[Top] [All Lists]

Re: [LARTC] Deleting a tc filter rule

To: "Martija, Ricardo V" <rmartija@telcordia.com>, lartc@mailman.ds9a.nl
Subject: Re: [LARTC] Deleting a tc filter rule
From: "Marco Aurelio" <marco.casaroli@gmail.com>
Date: Wed, 27 Jun 2007 13:04:01 -0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M7Delgk+vPmpOUP/62rCSd74f5zG2u+apRfJjQ6HxBVul8ThtKFn9I6AvnCVNOvK21PN8qFtefzjU67Zr3tuHGu+1DUYHTdEQVTg4EH590hbFtSk9usTbeavhJyEyCLxrafuVcw1CsGKSJyl7aBok06rJxZ8UW38NK0CoKTpknY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ixRrISzcujQjMaGfRP1leumYT8vsIJIvlnCG6x3G8vg23rDLmJVhBoaIFsG6tPSA2wB4PEH51p64SH4gTsu2m85cvOhZQ76C53bMhnk+0/SD3etFNpLH6CRqF3OTGPh8oRKUNTg5aZmzqLEOr0dw8/hBREPfkjeD3zZuaAwB0Uk=
In-reply-to: <B7432F9DDB12A840AB043529D7D384DA090AFC94@rrc-dte-exs01.dte.telcordia.com>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <B7432F9DDB12A840AB043529D7D384DA090AFC94@rrc-dte-exs01.dte.telcordia.com>
Sender: lartc-bounces@mailman.ds9a.nl
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
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>