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 = raw if meta_protocol == ETH_P_MPLS; /* or whatever */
field ip_hdr = mpls_hrd[4]; /* skip shim header */

...
    do_whatever if ip_dscp == 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

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [EMAIL PROTECTED] /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to