From: Maria Joana Urbano <stmaria@dei.uc.pt>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] howto mark packet's dscp value
Date: Mon, 17 Mar 2003 11:27:53 +0000 [thread overview]
Message-ID: <marc-lartc-104790067419130@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104754226123044@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
Hi Philip,
>I guess dsmark qdisc is runned before iptables PREROUTING phase, right?
>
Hummm, I actually use dsmark after all iptables hooks, at the QoS Egress,
just before the packet leaves the interface (please see KPTD at www.docum.org).
Probably you can do it before the routing code, using the IMQ, but I
haven't try it and I am not sure if this is possible...
Regards,
Joana Urbano
> > >
> > >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
> >
prev parent reply other threads:[~2003-03-17 11:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-13 7:56 [LARTC] howto mark packet's dscp value Philip Ho
2003-03-13 8:28 ` Alexander Trotsai
2003-03-13 13:08 ` Maria Joana Urbano
2003-03-15 1:26 ` Philip Ho
2003-03-17 11:27 ` Maria Joana Urbano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-104790067419130@msgid-missing \
--to=stmaria@dei.uc.pt \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.