Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Arthur van Leeuwen arthurvl@sci.kun.nl
To: lartc@vger.kernel.org
Subject: [LARTC] Re: iptables and DSCP
Date: Fri, 02 Feb 2001 18:08:26 +0000	[thread overview]
Message-ID: <marc-lartc-98373940416956@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373940416953@msgid-missing>

<PRE>On Fri, 2 Feb 2001, Pavarani Giovanna wrote:

&gt;<i> Talking about DSCP field...
</I>&gt;<i>
</I>&gt;<i> iptables is said to provide all the features of ipchains and something more and
</I>&gt;<i> better organized, but with ipchains I was able to set all the DSCP values
</I>&gt;<i> in the TOS field, with iptables it seems this is no more possible, only few
</I>&gt;<i> values are permitted.
</I>&gt;<i>
</I>&gt;<i> For example:
</I>&gt;<i>
</I>&gt;<i> &gt; iptables -t mangle -A PREROUTING  -s 10.0.0.2 -j TOS --set-tos 0xb8
</I>&gt;<i>
</I>&gt;<i> gives me:
</I>&gt;<i>
</I>&gt;<i> iptables v1.1.2:Bad TOS value '0xb8'
</I>&gt;<i>
</I>&gt;<i> Am I doing something wrong?
</I>
Yes. You need to specify two values, one and-mask and one or-mask, IIRC.
The new value will be the old value anded with your and-mask and then or-ed
with your or-mask.

Doei, Arthur.

-- 
  /\    / |      <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A>      | Work like you don't need the money
 /__\  /  | A friend is someone with whom | Love like you have never been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody watching



</PRE>

  reply	other threads:[~2001-02-02 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-02 16:55 [LARTC] Re: iptables and DSCP Pavarani
2001-02-02 18:08 ` Arthur [this message]
2001-02-02 19:26 ` Matthew

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-98373940416956@msgid-missing \
    --to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox