From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Folke Aeon" Date: Sat, 26 Oct 2002 01:39:44 +0000 Subject: Re: [LARTC] can anyone help me to solve this problem? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Thanks Werner, :) i still want to know whether i can mark the dscp at the ingress qdisc or not , for if i cannot do this , then at the egress qdisc i still have no dscp to use . :( >From: Werner Almesberger >To: Folke Aeon >CC: Subject: Re: [LARTC] can anyone help me to solve this problem? >Date: Fri, 25 Oct 2002 14:39:14 -0300 > >Folke Aeon wrote: > > BUT my trouble is , since i also use have to > > direct all packets into mpls layer , i cannot > > do the dscp marking at the egress . because > > the mpls header is added at the step immediately > > after the packet passes through system routing > > table. > >You can explicitly classify on the DSCP, i.e. without using >tcindex. If you need to explicitly skip the MPLS header, >you may use a construct like this: > >field mpls_hdr =3D raw if meta_protocol =3D ETH_P_MPLS; /* or whatever */ >field ip_hdr =3D mpls_hrd[4]; /* skip shim header */ > >... > do_whatever if ip_dscp =3D some_value; >... > > > on the packet. i cannot setup proper filter > > based on the index value marked at the ingress. > > thought i still not quite sure whether it is > > because of the mpls header that influences my > > purpose, > >That's odd, yes. If MPLS clears skb->tc_index, that would be >a bug. > >- Werner > >-- > =20 >_________________________________________________________________________ > / Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net= =20 >/ >/_http://www.almesberger.net/____________________________________________/ >_______________________________________________ >LARTC mailing list / LARTC@mailman.ds9a.nl >http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ _________________________________________________________________ Unlimited Internet access for only $21.95/month.=A0 Try MSN!=20 http://resourcecenter.msn.com/access/plans/2monthsfree.asp _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/