[PATCH] Unix datagram socket messaging

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Apr 16 10:47:26 MDT 2014


On Wed, Apr 16, 2014 at 09:42:58AM -0700, Jeremy Allison wrote:
> On Wed, Apr 16, 2014 at 01:58:29PM +0200, Volker Lendecke wrote:
> >  
> > So it is undefined behaviour to create a union of struct
> > sockaddr_un and struct sockaddr, store into one member and
> > read from another one. We're not the first ones trying to
> > solve this unspecified behaviour, I'm probably just not able
> > to correctly read the C standard.
> > 
> > Is anybody out there who knows how to correctly bind a unix
> > domain datagram socket without using undefined C behaviour?
> > Or is it just not possible to do in C?
> 
> Let's just do it the way we already do it, and
> have done with that :-).
> 
> I'm still reviewing, planning to push once
> I'm done (if I don't seen any other issues :-).

Please wait until Stefan has done his review. He has
indicated that he has not even started to really thoroughly
review it, and he already found a bunch of issues with it.

Thanks,

Volker

-- 
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:kontakt at sernet.de


More information about the samba-technical mailing list