socket support (bind) broken on solaris (by sockaddr_storage changes?)

Michael Adam ma at sernet.de
Thu Nov 1 17:02:53 GMT 2007


Hi Jeremy, 

I noticed, that socket's do not work anymore on Solaris
(tested on Solaris 5.10 and Opensolaris (5.11)).

The bind calls in nmbd (port 137) and also in smbd for
ports 139 and 445 fail with (e.g.):

> bind failed on port 137 socket_addr = .
> Error = Invalid argument

This must be related to the sockaddr_storage changes,
but I didn't see the reason at a quick glance.

 From configure, we have:
 
#define HAVE_STRUCT_SOCKADDR 1
#define HAVE_STRUCT_SOCKADDR_IN6 1
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
#define HAVE_IPV6 1
#define HAVE_GETNAMEINFO 1
#define HAVE_STRUCT_ADDRINFO 1
#define HAVE_GETADDRINFO 1
#define HAVE_FREEADDRINFO 1
/* #undef HAVE_INET_NTOP */
/* #undef HAVE_INET_PTON */
...

Cheers, Michael

-- 
Michael Adam <ma at sernet.de>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE


More information about the samba-technical mailing list