Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 1999 11:19:21 -0400 (EDT)
From:      Zhihui Zhang <zzhang@cs.binghamton.edu>
To:        Michael Kennett <mike@laurasia.com.au>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Passing descriptors over local domain sockets
Message-ID:  <Pine.GSO.3.96.990929111718.13398A-100000@sol.cs.binghamton.edu>
In-Reply-To: <199909291229.UAA92505@laurasia.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 Sep 1999, Michael Kennett wrote:

> Hello All,
> 
> I have a program that passes descriptors over local domain sockets.
> It works fantastically on FreeBSD, but I've got to port the program over
> to Linux (sigh). Unfortunately, the program doesn't work on Linux -- is
> this because of problems with the Linux implementation of passing file
> descriptors?
> 
> If anyone has I'd really appreciate any feedback on this!
> 
> I've also noticed that the linux 'struct sockaddr_in' doesn't include the
> field 'sin_len' -- indeed, it appears that the (BSD) character fields
> 'sin_len' and 'sin_family'  have been merged into the linux 'u_short sin_
> family' field. What is the proper way of handling this incompatibility?
> 

I could be wrong. But the socket layer code of FreeBSD is different from
that of Linux. Even if Linux has something called socket, that is only the
interface.  The internal mechanims can be different.

-Zhihui



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990929111718.13398A-100000>