From owner-freebsd-questions Fri Feb 5 00:19:01 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA13885 for freebsd-questions-outgoing; Fri, 5 Feb 1999 00:19:01 -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 AAA13878 for ; Fri, 5 Feb 1999 00:18:59 -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 AAA09070 for ; Fri, 5 Feb 1999 00:18:21 -0800 (PST) Message-Id: <3.0.5.32.19990205001838.03baa980@ccsales.com> X-Sender: randyk@ccsales.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 05 Feb 1999 00:18:38 -0800 To: questions@FreeBSD.ORG From: "Randy A. Katz" Subject: A Perl Question Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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