Date: Fri, 05 Feb 1999 00:30:59 -0800 From: "Randy A. Katz" <randyk@ccsales.com> To: questions@FreeBSD.ORG Subject: Re: A Perl Question Message-ID: <3.0.5.32.19990205003059.0425add0@ccsales.com> In-Reply-To: <3.0.5.32.19990205001838.03baa980@ccsales.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990205003059.0425add0>