[PATCH] replace RFC2181 magic numbers with POSIX definitions

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 21 Nov 2009 18:54:30 +1300

The maximum length of host names is provided by POSIX-compliant
compilers. MAXHOSTNAMELEN is a standard definition relative to those
values so we do not need the magic numbers. The actual RC2181 texts
describe the same limits defined by POSIX IEEE Std 1003.1.

There are some slightly-broken systems which use an older POSIX standard
with much smaller values. But I feel we should obey those system limits
and not pass their kernels larger chunks of data.

This makes use of the standard values instead of our magic numbers.

Votes?

Amos

Received on Sat Nov 21 2009 - 05:54:43 MST

This archive was generated by hypermail 2.2.0 : Sat Nov 21 2009 - 12:00:05 MST