From owner-freebsd-hackers Mon Aug 31 00:37:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA07777 for freebsd-hackers-outgoing; Mon, 31 Aug 1998 00:37:34 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA07759 for ; Mon, 31 Aug 1998 00:37:31 -0700 (PDT) (envelope-from dirk.vangulik@jrc.it) Received: from elpc36.jrc.it (elpc36.jrc.it [139.191.71.36]) by mrelay.jrc.it (LMC5692) with ESMTP id JAA28600; Mon, 31 Aug 1998 09:33:07 +0200 (MET DST) Received: (from dirkx@localhost) by elpc36.jrc.it (8.8.8/8.8.7) id JAA09325; Mon, 31 Aug 1998 09:34:15 +0200 (CEST) (envelope-from dirkx) Date: Mon, 31 Aug 1998 09:34:15 +0200 (CEST) From: Dirk-Willem van Gulik X-Sender: dirkx@elpc36.jrc.it To: Joel Ray Holveck cc: dirk.vangulik@jrc.it, chanders@timing.com, wpaul@skynet.ctr.columbia.edu, freebsd-hackers@FreeBSD.ORG Subject: Re: Help with passing fd on FreeBSD In-Reply-To: <199808300412.XAA06019@detlev.UUCP> 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 Sat, 29 Aug 1998, Joel Ray Holveck wrote: > > I struggeled with the same, in particular as the most recent book of > > Stevens uses the API as described in RFC2292. And two of the macro's > > are not quite part of socket.h. (why is this actually?) > Well, my best guess is that the RFC (entitled "Advanced Sockets API > for IPv6") is based on IPv6, which we have not integrated into > -current. (What's the story on that, anyway?) > The feature I thought you were referring to is passing an fd through a > local domain socket, not an inet socket. To the best of my knowledge, > BSD does not support the latter operation. (It would be nontrivial.) No sorry; it was just that the RFC describes a more general Socket API which covers more than just inet connections. Most, but not all of the proposed CMSG_ macro's are in socket.h on BSD. For people, like me, this means that we cannod blindly follow the guidance and advice; and worst of all, that we cannot copy the examples without thinking. :-) It should be noted that the CMSG_SPACE() and CMSG_LEN() macro's amounth to exactly nothing really when a file descriptor is passed. Dw. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message