[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110418083827.05dd2d43@nehalam>
Date: Mon, 18 Apr 2011 08:38:27 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Joe Buehler <aspam@....net>, netdev@...r.kernel.org
Subject: Re: DSCP values in TCP handshake
On Mon, 18 Apr 2011 16:05:12 +0200
Eric Dumazet <eric.dumazet@...il.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));
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists