From owner-freebsd-net Thu Nov 29 0:17: 2 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 0CD4C37B41B for ; Thu, 29 Nov 2001 00:16:50 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fAT8GHu84112; Thu, 29 Nov 2001 10:16:17 +0200 (EET) (envelope-from ru) Date: Thu, 29 Nov 2001 10:16:17 +0200 From: Ruslan Ermilov To: cjclark@alum.mit.edu Cc: Garrett Wollman , freebsd-net@FreeBSD.ORG Subject: Re: inet_pton(3) Does Not Replace inet_aton(3) Message-ID: <20011129101617.B77679@sunbay.com> References: <20011127123301.B3788@gohan.cjclark.org> <200111281731.fASHV9948068@khavrinen.lcs.mit.edu> <20011128165259.F3985@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011128165259.F3985@blossom.cjclark.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Nov 28, 2001 at 04:52:59PM -0800, Crist J. Clark wrote: > On Wed, Nov 28, 2001 at 12:31:09PM -0500, Garrett Wollman wrote: > > < said: > > > > > Where inet_pton(3) will fail (return a 1). That is, inet_pton(3) only > > > understands dotted quads. The comments in src/lib/libc/net/inet_pton.c > > > clearly show this is the intended behavior. But is that what we want? > > > > Yes. The old format is deprecated, obsolete, legacy, however you want > > to put it. > > OK. But I think it should be documented. > > Index: inet.3 > =================================================================== > RCS file: /export/ncvs/src/lib/libc/net/inet.3,v > retrieving revision 1.19 > diff -u -r1.19 inet.3 > --- inet.3 1 Oct 2001 16:08:55 -0000 1.19 > +++ inet.3 29 Nov 2001 00:47:28 -0000 > @@ -203,6 +203,14 @@ > otherwise, the number is interpreted as decimal). > .Pp > The > +.Fn inet_pton > +function only understands Internet addresses written as dotted quads. > +Each > +.Dq part > +may only contain numeric characters and is always interpreted as a > +decimal value. > +.Pp > +The > .Fn inet_aton > and > .Fn inet_ntoa > Um, don't we already have this documented in the STANDARDS section? Though I liked POSIX.1-200x text more. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message