From owner-freebsd-questions Fri Feb 5 00:31:17 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA15118 for freebsd-questions-outgoing; Fri, 5 Feb 1999 00:31:17 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ccsales.com (ccsales.com [216.0.22.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA15111 for ; Fri, 5 Feb 1999 00:31:16 -0800 (PST) (envelope-from randyk@ccsales.com) Received: from rknt2 (rkcasant2.hiper.net [209.0.203.99]) by ccsales.com (8.9.1/8.9.0) with SMTP id AAA09300 for ; Fri, 5 Feb 1999 00:30:42 -0800 (PST) Message-Id: <3.0.5.32.19990205003059.0425add0@ccsales.com> X-Sender: randyk@ccsales.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 05 Feb 1999 00:30:59 -0800 To: questions@FreeBSD.ORG From: "Randy A. Katz" Subject: Re: A Perl Question In-Reply-To: <3.0.5.32.19990205001838.03baa980@ccsales.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Correction, I found this in /usr/include/net: netisr.h:#define NETISR_IP 2 /* same as AF_INET */ but none of these types works...or something else isn't. I am running FreeBSD 3.0. At 12:18 AM 2/5/99 -0800, Randy A. Katz wrote: >Hi, > >I'm trying to use gethostbyaddr and it is returning blank: > >$ipaddress = "216.0.22.30"; >($name, $aliases, $addrtype, $length, @addrs) = >gethostbyaddr($ipaddress,AF_INET); >print "Name: $name\n"; >print "Aliases: $aliases\n"; >print "Type: $addrtype\n"; >print "Length: $length\n"; >foreach $p (@addrs) { > print "A:$p\n"; >} >exit; > >I grepped for AF_INET in /usr/include and there is nothing there, I did a >man on gethostbyaddr and AF_INET is the only parameter listed for type??? > >Thank you, >Randy Katz > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message