From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Mon, 25 Apr 2005 11:35:24 +0000 Subject: Re: [LARTC] filtering Message-Id: <426CD5FC.5080804@dsl.pipex.com> List-Id: References: <7034e7b505042503525f04aa22@mail.gmail.com> In-Reply-To: <7034e7b505042503525f04aa22@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Grace Baldonasa wrote: > Hi, > > Can I use mac address as classifiers in the filters? Yes for dst mac A1:B2:C3:D4:E5:F6 it's tc filter add dev eth0 parent 1:0 protocol ip prio 1 \ u32 match u16 0x0800 0xFFFF at -2 \ match u32 0xC3D4E5F6 0xFFFFFFFF at -12 \ match u16 0xA1B2 0xFFFF at -14 \ flowid 1:1 For src I assume you can just change the offsets - I've not tried it as there is an iptables match for src MAC. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc