From owner-freebsd-hackers Wed Sep 29 8:34: 7 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id C6A6C15128 for ; Wed, 29 Sep 1999 08:33:56 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (cs1-gw.cs.binghamton.edu [128.226.171.72]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with SMTP id LAA25982; Wed, 29 Sep 1999 11:33:39 -0400 (EDT) Date: Wed, 29 Sep 1999 11:19:21 -0400 (EDT) From: Zhihui Zhang To: Michael Kennett Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Passing descriptors over local domain sockets In-Reply-To: <199909291229.UAA92505@laurasia.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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