Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 1998 09:34:15 +0200 (CEST)
From:      Dirk-Willem van Gulik <dirk.vangulik@jrc.it>
To:        Joel Ray Holveck <joelh@gnu.org>
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
Message-ID:  <Pine.BSF.3.96.980831093106.1827S-100000@elpc36.jrc.it>
In-Reply-To: <199808300412.XAA06019@detlev.UUCP>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980831093106.1827S-100000>