From: Stephen Hemminger <shemminger@vyatta.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Joe Buehler <aspam@cox.net>, netdev@vger.kernel.org
Subject: Re: DSCP values in TCP handshake
Date: Mon, 18 Apr 2011 08:38:27 -0700 [thread overview]
Message-ID: <20110418083827.05dd2d43@nehalam> (raw)
In-Reply-To: <1303135512.3137.335.camel@edumazet-laptop>
On Mon, 18 Apr 2011 16:05:12 +0200
Eric Dumazet <eric.dumazet@gmail.com> wrote:
> Le lundi 18 avril 2011 à 13:48 +0000, Joe Buehler a écrit :
> > What does the LINUX network code put in the DSCP field of TCP SYN-ACK packets
> > that are replies to a SYN connection request? I have a customer sending SYN
> > with 0x2e in the DSCP field but apparently getting DSCP 0x0 in the reply.
>
> The other way (server->client) is depending on application and listener
> only.
>
> If it uses a standard socket, standard bind() + listen(), TOS is 0
If you want to set DSCP in the response, the application needs to apply
set it on the listening socket.
dscp = 0x2e;
setsockopt(s, IPPROTO_IP, IP_TOS, &dscp, sizeof(dscp));
next prev parent reply other threads:[~2011-04-18 15:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 13:48 DSCP values in TCP handshake Joe Buehler
2011-04-18 14:05 ` Eric Dumazet
2011-04-18 15:38 ` Stephen Hemminger [this message]
2011-04-18 15:57 ` Mikael Abrahamsson
2011-04-18 19:01 ` Joe Buehler
2011-04-18 19:16 ` Mikael Abrahamsson
2011-04-18 21:49 ` Stephen Hemminger
2011-04-19 3:50 ` Mikael Abrahamsson
2011-04-19 4:16 ` Stephen Hemminger
2011-04-19 4:28 ` Mikael Abrahamsson
2011-04-19 15:09 ` Matt Mathis
2011-04-19 17:38 ` Mikael Abrahamsson
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=20110418083827.05dd2d43@nehalam \
--to=shemminger@vyatta.com \
--cc=aspam@cox.net \
--cc=eric.dumazet@gmail.com \
--cc=netdev@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).