[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090126223733.GB1922@Chamillionaire.breakpoint.cc>
Date: Mon, 26 Jan 2009 23:37:33 +0100
From: Florian Westphal <fw@...len.de>
To: John Reumann <reumann.linux@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 1/1] Fix getsockname (ipv4/ipv6)
John Reumann <reumann.linux@...il.com> wrote:
> This change will return ENOSPC if the return address provided by the caller of getsockname
> is not sufficiently large to hold the return value.
Those interfaces allow applications to query how large the sockaddr storage needs to
be by checking *addrlen after a successful call.
> This is consistent with the rest of the
> API. However, there are some implemenations that copy only as many bytes of sockaddr from the
> kernel to user-space as specified in the *addrlen attribute. (1) This wasn't the behavior now
It is, and it has been for ages.
--
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