[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-241-g2a01737

simo idra at samba.org
Fri Nov 9 04:57:31 GMT 2007


On Thu, 2007-11-08 at 19:28 -0600, Jeremy Allison wrote:
>  #ifndef HOST_NAME_MAX
> -#define HOST_NAME_MAX 64
> +#define HOST_NAME_MAX 255
>  #endif

I assume this is the size of a single hostname component.
Per RFC any single DNS name component can be 64 chars at most with the
full DNS name being 255 at most.

So a 64 byte limit for each single component is correct (if this was
used for the full hostname it is of course wrong).

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Senior Software Engineer at Red Hat Inc. <ssorce at redhat.com>



More information about the samba-technical mailing list