From owner-freebsd-hackers Sun Jun 4 18: 4:58 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id D329337B878 for ; Sun, 4 Jun 2000 18:04:54 -0700 (PDT) (envelope-from jim@thehousleys.net) Received: from thehousleys.net (baby.int.thehousleys.net. [192.168.0.24]) by thehousleys.net (8.9.3/8.9.3) with ESMTP id VAA91367; Sun, 4 Jun 2000 21:04:51 -0400 (EDT) (envelope-from jim@thehousleys.net) Message-ID: <393AFCB3.1AABB056@thehousleys.net> Date: Sun, 04 Jun 2000 21:04:51 -0400 From: James Housley Organization: The Housleys dot Net X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: David Malone Cc: freebsd-hackers@freebsd.org Subject: Re: Using TCP_WRAPPERS in code References: <393AE79E.F330ADDD@thehousleys.net> <20000605005641.A43900@walton.maths.tcd.ie> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Malone wrote: > > On Sun, Jun 04, 2000 at 07:34:54PM -0400, James Housley wrote: > > I would like to use tcp_wrappers (libwrap) in a program. I din't see > > any examples or a reference to a web site. I have read the man page. > > Is there a good example of a program in the FreeBSD 4 tree that is not > > inetd spawned and uses libwrap? > > The source to tcpd, which just uses libwrap, is fairly easy to read.. > > Have a look at /usr/src/contrib/tcp_wrappers/tcpd.c > I guess that qualifies as a DUHHHH. Pointy hat to me. I looked in that directory and never even thought about tcpd.c Thanks Jim -- Unix is very user-friendly. It's just picky who its friends are. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message