From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Ho Date: Sat, 15 Mar 2003 01:26:53 +0000 Subject: Re: [LARTC] howto mark packet's dscp value 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 Dear Joana I guess dsmark qdisc is runned before iptables PREROUTING phase, right? Regards, philip Maria Joana Urbano wrote: > > > >can anyone tell me how to mark packet's DSCP value using tc? > > > > Hi, > > You can use the dsmark qdisc. Something like (example): > > tc qdisc add dev $DEV handle 1:0 root dsmark indices 64 set_tc_index > (...) > tc class change $DEV parent 1:0 classid 1:1 dsmark 0x3 value 0xb8 # EF > (...) > tc filter add dev $DEV parent 1:0 prio 4 u32 ip dst y.y.y.y classid 1:1 > > This way, packets going to y.y.y.y get EF mark. > > Iproute2 packages comes with some examples. The "Differentiated Services on > Linux" draft by Almesberger, Jamal and Alexey Kuznetsov is another good > source, including commented and easy to understand examples. > > Regards, > Joana Urbano > > ------------------------------------------------------------------------ > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.459 / Virus Database: 258 - Release Date: 25-02-2003 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/