netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Philip Prindeville <philipp_subx@redfish-solutions.com>
To: Alexander Clouter <alex@digriz.org.uk>
Cc: netdev@vger.kernel.org
Subject: Re: setsockopt(IP_TOS) being privileged or distinct capability?
Date: Mon, 05 Jul 2010 12:08:17 -0600	[thread overview]
Message-ID: <4C321F91.90304@redfish-solutions.com> (raw)
In-Reply-To: <20100703234813.GJ24655@chipmunk>

Say, on a slightly different subject... but still having to do with 
setsockopt(IP_TOS)... is it intentional that system call effectively 
does nothing if the socket is in listen(), connect(), or bind() states?

In other words, you have to issue the setsockopt() immediately after the 
socket() call, or it doesn't do anything.

As I remember, that's slightly different semantics from BSD, which 
allows you to change the markings on a bound or listening socket.

I've not walked through the kernel sources to see why this is.

-Philip


  parent reply	other threads:[~2010-07-05 18:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-03 17:58 setsockopt(IP_TOS) being privileged or distinct capability? Philip Prindeville
2010-07-03 18:55 ` Alexander Clouter
2010-07-03 23:07   ` Philip Prindeville
2010-07-03 23:48     ` Alexander Clouter
2010-07-05 18:04       ` Philip Prindeville
2010-07-06  2:07         ` Hagen Paul Pfeifer
2010-07-06  3:08           ` Philip Prindeville
2010-07-06  3:13             ` David Miller
2010-07-06 10:56         ` Benny Amorsen
2010-07-05 18:08       ` Philip Prindeville [this message]
2010-07-06  8:17 ` Rémi Denis-Courmont

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=4C321F91.90304@redfish-solutions.com \
    --to=philipp_subx@redfish-solutions.com \
    --cc=alex@digriz.org.uk \
    --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).