From: "Jason Boxman" Date: Tue, 07 Feb 2006 19:37:14 +0000 Subject: Re: [LARTC] deleting 1 filter deletes all (under same class) Message-Id: <39306.216.134.200.78.1139341034.squirrel@nebula.internal.foo> List-Id: References: <1139305960.14378.253731119@webmail.messagingengine.com> In-Reply-To: <1139305960.14378.253731119@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org iler_ml@fastmail.fm said: > I am creating three u32 filters with different dst addresses. > When I delete one of those filters, all three are deleted. Why all 3 > filters are deleted even though in 'tc filter del' command I give > exactly all parameters of filters creation. Is this expected > behaviour, that all other filters are deleted also ? It took some doing, but I researched a way of handling that. $TC filter add dev $INTIF protocol ip prio 1 parent 1: \ handle 0x$hid u32 match ip dst $ip classid 1:$hid $TC filter del dev $INTIF parent 1: \ protocol ip prio 1 handle 800::$hid u32 I forget _why_ it works that way, but it does. $hid is actually hexadecimal, though for a few systems it's usually used as if it was an integer. I had been meaning to post the script. Maybe this week... _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc