From: iler_ml@fastmail.fm Date: Tue, 07 Feb 2006 09:52:40 +0000 Subject: [LARTC] deleting 1 filter deletes all (under same class) Message-Id: <1139305960.14378.253731119@webmail.messagingengine.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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 ? Thanks Yakov Lerner Here is sample script that reproduces how single 'tc filter del' command deletes 3 filters: ------------------------------------------------------------- # create qdisc and classes tc qdisc del dev eth0 root handle 1:0 htb tc qdisc add dev eth0 root handle 1:0 htb tc class add dev eth0 parent 1:0 classid 1:1 htb rate 2048kbit tc class add dev eth0 parent 1:0 classid 1:21 htb rate 512kbit tc class add dev eth0 parent 1:0 classid 1:22 htb rate 512kbit tc class add dev eth0 parent 1:0 classid 1:23 htb rate 512kbit # create 3 filters tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 match ip dst 1.1.1.1/32 flowid 1:21 tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 match ip dst 2.2.2.2/32 flowid 1:22 tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 match ip dst 3.3.3.3/32 flowid 1:23 tc filter show dev eth0 parent 1:1 # here, we see 3 filters that we created # del 1 filter tc filter del dev eth0 parent 1:1 protocol ip prio 1 u32 match ip dst 1.1.1.1/32 flowid 1:21 tc filter show dev eth0 parent 1:1 # here, we see all 3 filters deleted ------------------------------------------ -- iler_ml@fastmail.fm -- http://www.fastmail.fm - Email service worth paying for. Try it for free _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc