All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maria Joana Urbano <stmaria@dei.uc.pt>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] howto mark packet's dscp value
Date: Thu, 13 Mar 2003 13:08:57 +0000	[thread overview]
Message-ID: <marc-lartc-104756112212910@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104754226123044@msgid-missing>

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]


>
>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


[-- Attachment #2: Type: text/plain, Size: 169 bytes --]


---
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

  parent reply	other threads:[~2003-03-13 13:08 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 [this message]
2003-03-15  1:26 ` Philip Ho
2003-03-17 11:27 ` Maria Joana Urbano

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-104756112212910@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.