httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Richards <p...@netcraft.co.uk>
Subject Re: MAXHOSTNAMELEN
Date Tue, 12 Sep 1995 12:11:59 GMT
In reply to Andrew Wilson who said
> 
> So far I already know about
> 
> 	FreeBSD		/usr/include/sys/param.h (255?, er Paul, I dun't
> 	   2.0.5		remember what we found, wanna check today)

#define MAXHOSTNAMELEN  256     /* max hostname size */

> 	SunOS 4.1.3	/usr/include/sys/param.h (64)
> 	Solaris 2.4	/usr/include/netdb.h     (256)
> 
> 	HPUX?
> 	LINUX?
> 
> 	I checked Linux 1.2.8...
> 
> 	o	sys.param.h contains the code:
> 
> 		#ifdef OLD_LINUX
> 		#undef        MAXHOSTNAMELEN
> 		#define MAXHOSTNAMELEN        8   /* max length of hostname */
> 		#endif
> 
> 	o	asm/types.h sez:
> 
> 		#define        MAXHOSTNAMELEN  64
> 
> 	o	and rpc/types.h sez:
> 
> 		#define        MAXHOSTNAMELEN  64
> 
> 	o	Any Linux accolytes have a clue which of these is the real
> 		thing?

Ain't Linux fun :-) Umm, I think MAXHOSTNAMELEN is a fairly standard
thing but in any case, use it and if there are one or two OS's that
are braindead they can be dealt with by defining it to be something
sensible for those OS's in the config file.

Of course, when 1.0 gets out the door and I'm free to work on my new
style configuration this will become much cleaner. :-)

-- 
  Paul Richards, Netcraft Ltd.
  Internet: paul@netcraft.co.uk, http://www.netcraft.co.uk
  Phone: 0370 462071 (Mobile), +44 1225 447500 (work)

Mime
View raw message