From: Patrick Schaaf <netdev@bof.de>
To: netfilter-devel@vger.kernel.org
Subject: TOS target mask - leave alone the ECN bits
Date: Sun, 10 Nov 2013 12:53:21 +0100 [thread overview]
Message-ID: <1475190.7d3oHlGIdH@rofl> (raw)
Dear netfilter developers,
I'm stumbling over a confusion, maybe just mine, regarding the use of the mask
value of the TOS target in order to avoid messing with the ECN bits within.
I thought I understood the issue, starting to use, for example:
-j TOS --set-tos 0x0c/0xfc
which should result in A) leaving ECN alone and B) set the DSCP bits to
000011, the first "reserved for local use" value.
The confusion I'd like to clear up with this mail, is that googling around to
confirm my understanding, I found the following text in my iptables-extensions
manual page for the tos _match_ --tos option:
... Note that this implies a mask of 0x3F, i.e. all but the ECN bits.
Is my understanding wrong, should I use --set-tos 0x03/0x3f instead for the
example above? Or is the manpage wrong?
best regards
Patrick
next reply other threads:[~2013-11-10 11:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-10 11:53 Patrick Schaaf [this message]
2013-11-11 7:31 ` TOS target mask - leave alone the ECN bits Jan Engelhardt
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=1475190.7d3oHlGIdH@rofl \
--to=netdev@bof.de \
--cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).