From owner-freebsd-net Wed Nov 28 16:53: 6 2001 Delivered-To: freebsd-net@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 6052A37B419 for ; Wed, 28 Nov 2001 16:53:04 -0800 (PST) Received: from dialup-209.245.134.84.dial1.sanjose1.level3.net ([209.245.134.84] helo=blossom.cjclark.org) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 169FRn-0002Rj-00; Wed, 28 Nov 2001 16:53:03 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fAT0qx205742; Wed, 28 Nov 2001 16:52:59 -0800 (PST) (envelope-from cjc) Date: Wed, 28 Nov 2001 16:52:59 -0800 From: "Crist J. Clark" To: Garrett Wollman Cc: freebsd-net@FreeBSD.ORG Subject: Re: inet_pton(3) Does Not Replace inet_aton(3) Message-ID: <20011128165259.F3985@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20011127123301.B3788@gohan.cjclark.org> <200111281731.fASHV9948068@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111281731.fASHV9948068@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Wed, Nov 28, 2001 at 12:31:09PM -0500 X-URL: http://people.freebsd.org/~cjc/ 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 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 -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message