From: Ulrich Drepper <drepper@redhat.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: netdev <netdev@vger.kernel.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: follow-up: discrepancy with POSIX
Date: Wed, 19 Sep 2007 09:49:09 -0700 [thread overview]
Message-ID: <46F15305.2030507@redhat.com> (raw)
In-Reply-To: <p73sl5aveqh.fsf@bingen.suse.de>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andi Kleen wrote:
> The standard way to undo connect is to use AF_UNSPEC. Code to handle
> that for dgram sockets is there. It's the same code for v4 and v6.
I quoted the standard and it does not say anything about AF_UNSPEC. So
you cannot simply make such broad statements.
I also don't say that this behavior should be removed. It's certainly
useful, very much so in fact.
But the spec calls for a "null address" to be used and that's in my
understanding something different from using AF_UNSPEC.
I looked through Stevens TCP Illustrated Vol 2 and it seems not to
mention resetting the address at all. The POSIX spec certainly got this
text from .1g.
I cannot test it on other systems. If somebody has access to some
certified systems (and maybe others), write a bit of code which creates
a DGRAM socket, connect to one address, call connect with a "null
address", then connect to another address (which likely has to use a
different interface since otherwise the connect will just succeed, it
seems).
- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFG8VMF2ijCOnn/RHQRAr9NAJwLxyql0kQnMGJNaPZlRGsuB6rGEACgog88
WIWAFhuBWsjps7PdbcoumUQ=
=oLxP
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2007-09-19 16:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-19 15:21 follow-up: discrepancy with POSIX Ulrich Drepper
2007-09-19 15:47 ` Andi Kleen
2007-09-19 16:49 ` Ulrich Drepper [this message]
2007-09-19 16:52 ` David Miller
2007-09-19 17:04 ` Ulrich Drepper
2007-09-19 17:27 ` Ulrich Drepper
2007-09-19 17:26 ` Andi Kleen
2007-09-19 17:46 ` Ulrich Drepper
2007-09-19 17:57 ` Andi Kleen
2007-09-19 18:02 ` Ulrich Drepper
2007-09-19 18:30 ` Andi Kleen
2007-09-19 18:38 ` Rick Jones
2007-09-19 19:40 ` Andi Kleen
2007-09-19 20:33 ` Valdis.Kletnieks
2007-09-19 18:06 ` Alan Cox
2007-09-19 16:15 ` David Miller
2007-09-19 16:39 ` Alan Cox
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=46F15305.2030507@redhat.com \
--to=drepper@redhat.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.