From owner-freebsd-doc@FreeBSD.ORG Wed Sep 29 16:30:46 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0350D16A4CE for ; Wed, 29 Sep 2004 16:30:46 +0000 (GMT) Received: from mail.secureworks.net (mail.secureworks.net [209.101.212.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 7682D43D48 for ; Wed, 29 Sep 2004 16:30:45 +0000 (GMT) (envelope-from mdg@secureworks.net) Received: (qmail 15713 invoked from network); 29 Sep 2004 16:30:44 -0000 Received: from unknown (HELO HOST-192-168-8-243.internal.secureworks.net) (63.239.86.253) by mail.secureworks.net with SMTP; 29 Sep 2004 16:30:44 -0000 Date: Wed, 29 Sep 2004 12:30:44 -0400 (EDT) From: Matthew George X-X-Sender: mdg@localhost To: Maxim Konovalov In-Reply-To: <20040929201812.G9999@mp2.macomnet.net> Message-ID: <20040929122826.R20232@localhost> References: <20040929120608.D20232@localhost> <20040929201812.G9999@mp2.macomnet.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: doc@freebsd.org Subject: Re: addr2ascii(3) needs sys/socket.h? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 16:30:46 -0000 On Wed, 29 Sep 2004, Maxim Konovalov wrote: > On Wed, 29 Sep 2004, 12:09-0400, Matthew George wrote: > > > > > AF_INET or AF_LINK should be passed as the first arg to addr2ascii(3) and > > ascii2addr(3). These are defined in sys/socket.h, but that is omitted in > > the include section of the manpage. > > > > In the EXAMPLE section we see > > : #include > : #include > : #include > : #include > > so you need to put sys/socket.h right after sys/types.h. ah, i missed the reference from the example ... I just noticed that it wasn't in the synopsis -- Matthew George SecureWorks Technical Operations