From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Sun, 13 Apr 2003 17:49:03 +0000 Subject: Re: [LARTC] Filtering packets with U32 Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Sunday 13 April 2003 14:48, openings wrote: > hi. > > I want to filter packets that's source address is 192.168.0.1 or > 192.168.0.25 or 192.168.0.0/28. > > # tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip src > 192.168.0.1 flow id 1:30 # tc filter add dev eth0 parent 1: protocol ip > prio 1 u32 match ip src 192.168.0.25 flow id 1:30 # tc filter add dev eth0 > parent 1: protocol ip prio 1 u32 match ip src 192.168.0.0/28 flow id 1:30 > > But the above command need to execute tc three times. > > Can I filtering it with one line tc command? No. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/