From: Jeff Weinstein <jsw@netscape.com>
To: sameer@c2.org
Message Hash: 632cc4bcc2465e64efb2067e3ced0df96919f850d24d9cba59ad35c3eb871837
Message ID: <199510042316.QAA22055@ammodump.mcom.com>
Reply To: N/A
UTC Datetime: 1995-10-04 23:18:20 UTC
Raw Date: Wed, 4 Oct 95 16:18:20 PDT
From: Jeff Weinstein <jsw@netscape.com>
Date: Wed, 4 Oct 95 16:18:20 PDT
To: sameer@c2.org
Subject: Re: New Netscape bug (in version 1.12)
Message-ID: <199510042316.QAA22055@ammodump.mcom.com>
MIME-Version: 1.0
Content-Type: text/plain
On Oct 4, 11:00am, sameer wrote:
> Subject: Re: New Netscape bug (in version 1.12)
> Isn't there a resolver #define or something in limits.h called
> MAXHOSTNAMELEN ? Something like that? (Perhaps not, but that's what I
> recall..)
We are using MAXHOSTNAMELEN if it exists, both in 2.0, and in the
security patch that we shipped. If it doesn't exist we just assume 64.
As a quick sample, on sunos and irix it is 64, and on solaris it is 256.
On sunos and irix it is defined in sys/param.h, and on solaris it is
defined in netdb.h. I wasn't able to find any mention of it or any
other limits on the host names passed in to gethostbyname() in the
man pages on any of these systems.
--Jeff
Jeff Weinstein - Electronic Munitions Specialist
Netscape Communication Corporation
jsw@netscape.com - http://home.netscape.com/people/jsw
Any opinions expressed above are mine.
Return to October 1995
Return to “Jeff Weinstein <jsw@netscape.com>”
1995-10-04 (Wed, 4 Oct 95 16:18:20 PDT) - Re: New Netscape bug (in version 1.12) - Jeff Weinstein <jsw@netscape.com>