Date: Thu, 11 Apr 2002 02:15:17 +0900 From: Hajimu UMEMOTO <ume@mahoroba.org> To: Mike Barcroft <mike@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet in.h src/sys/netinet6 in6.h Message-ID: <yge662zfpay.wl@mille.mahoroba.org> In-Reply-To: <200204101159.g3ABx2e55901@freefall.freebsd.org> References: <200204101159.g3ABx2e55901@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
>>>>> On Wed, 10 Apr 2002 04:59:02 -0700 (PDT)
>>>>> Mike Barcroft <mike@FreeBSD.org> said:
mike> mike 2002/04/10 04:59:02 PDT
mike> Modified files:
mike> sys/netinet in.h
mike> sys/netinet6 in6.h
mike> Log:
mike> Unconditionalize the definition of INET_ADDRSTRLEN and
mike> INET6_ADDRSTRLEN. Doing this helps expose bogus redefinitions in 3rd
mike> party software.
I cannot understand why this change is required. RFC2553 says:
addresses, the buffer must be at least 16-octets. In order to allow
applications to easily declare buffers of the proper size to store
IPv4 and IPv6 addresses in string form, the following two constants
are defined in <netinet/in.h>:
#define INET_ADDRSTRLEN 16
#define INET6_ADDRSTRLEN 46
I believe this two define shouldn't appear in application side.
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge662zfpay.wl>
