[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070919175700.GC18045@one.firstfloor.org>
Date: Wed, 19 Sep 2007 19:57:00 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Ulrich Drepper <drepper@...hat.com>
Cc: Andi Kleen <andi@...stfloor.org>, netdev <netdev@...r.kernel.org>,
Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: follow-up: discrepancy with POSIX
On Wed, Sep 19, 2007 at 10:46:54AM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Andi Kleen wrote:
> >> But the spec calls for a "null address" to be used and that's in my
> >> understanding something different from using AF_UNSPEC.
> >
> > memset(&sockaddr, 0, sizeof(sockaddr)) should give you AF_UNSPEC
>
> But the spec calls for <quote>null address for the protocol</quote>.
>
> That means the family for the null address is the same as the family of
> the socket.
Spec doesn't match traditional behaviour then. IPv4 0.0.0.0 is
traditionally an synonym for old style all broadcast (255.255.255.255)
on UDP/RAW and it's certainly possible to connect() to that.
-Andi
-
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