[PATCH] connect's addrlen should be sizeof(local), not the contained path's length. Permits layer23 to work on OS X.

Harald Welte laforge at gnumonks.org
Thu Dec 9 13:23:26 UTC 2010


Hi Zecke,

On Thu, Dec 09, 2010 at 08:05:41AM +0100, Holger Hans Peter Freyther wrote:
> On 12/09/2010 04:33 AM, David Wilson wrote:
> 
> any more verbose commit message? What issue did you face? What is your
> reference?

my suggestion is that he was using a non-linux platform (specifically MacOS)
which has slightly different layout of the socket address structure.

In any case, sizeof() the entire structure is correct, not size of the two
members (which is ignoring any padding, etc.)

nonetheless, a more detailed description would be helpful so we don't have
to guess...

-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)




More information about the baseband-devel mailing list