LARTC
[Top] [All Lists]

[LARTC] Deleting a tc filter rule

To: <lartc@mailman.ds9a.nl>
Subject: [LARTC] Deleting a tc filter rule
From: "Martija, Ricardo V" <rmartija@telcordia.com>
Date: Wed, 27 Jun 2007 11:58:52 -0400
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
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>
Sender: lartc-bounces@mailman.ds9a.nl
Thread-index: Ace0TbYiGnzvGRsTTY6R/p1SZqAUCwEhhKNw
Thread-topic: Deleting a tc filter rule

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

 

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

 

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
<Prev in Thread] Current Thread [Next in Thread>