[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Netscape bug (in version 1.12)



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.