From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Sat, 23 Sep 2006 15:06:24 +0000 Subject: Re: [LARTC] Doubts regarding classifiers available. Message-Id: <45154D70.7000800@andyfurniss.entadsl.com> List-Id: References: <1158748527.4559.9.camel@Krishna> In-Reply-To: <1158748527.4559.9.camel@Krishna> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org chaitanya wrote: > Hi, > I am a newbie working on tc tool, i want to know whether we have the > following classifiers available > > (1) source MAC address. > (2) destination MAC address. > (3) IEEE 802.1D user priority. > (4) Ethertype (IEEE 802.3, 1998 Length/Type Field). > > Can any one help me in finding the help for the above classifiers. > Thanks in advance tc filter protocol is ethertype most examples use ip you can use a number or all, arp etc. You need a different prio for each type. You can also match protocol at -2 with u32/u16. You do the same for macs with mac of target machine 00:C1:26:0F:04:AD. tc filter add dev eth0 protocol ip parent 12: prio 1 u32 \ match u16 0x00c1 0xffff at -14 \ match u32 0x260f04ad 0xffffffff at -12 \ flowid X:Y User priority - you'll need to tcpdump -eXX and work out what offsets work. Andy. > > > Krishna Chaitanya > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc