From owner-freebsd-arch Tue Aug 13 18:57:24 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFA2F37B400; Tue, 13 Aug 2002 18:57:19 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAD8643E4A; Tue, 13 Aug 2002 18:57:18 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (auvbcco6ymwp98za@dsl-59-246.aei.ca [216.221.59.246]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id g7E1vC520775; Tue, 13 Aug 2002 21:57:13 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 624AF425; Tue, 13 Aug 2002 21:58:21 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Tue, 13 Aug 2002 21:53:41 -0400 Date: Tue, 13 Aug 2002 21:53:41 -0400 From: The Anarcat To: "Crist J. Clark" Cc: freebsd-arch@FreeBSD.ORG Subject: Re: implementation differences between inet_aton() and inet_pton() Message-ID: <20020814015341.GA305@lenny.anarcat.ath.cx> References: <3A565436-ABC5-11D6-BAC6-0050E4A0BB3F@anarcat.ath.cx> <20020813032357.GA1675@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <20020813032357.GA1675@blossom.cjclark.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Aug 12, 2002 at 08:23:57PM -0700, Crist J. Clark wrote: [snip] >=20 > Did you read the whole page? inet_pton(3) says, >=20 > STANDARDS > The inet_ntop() and inet_pton() functions conform to X/Open Networki= ng > Services Issue 5.2 (``XNS5.2''). Note that inet_pton() does not acc= ept > 1-, 2-, or 3-part dotted addresses; all four parts must be specified= and > are interpreted only as decimal values. This is a narrower input set > than that accepted by inet_aton(). Hmmm.. I guess I must provide an explanation here. I must admit have read quickly through the man page, but there was a misinterpretation here on my part. "Decimal" has a special meaning in french, and doesn't explicitly mean "base 10 integer" as in english, but more "number with a decimal part" (as opposed with "integer"). Which is quite confusing. I guess the man page survives the test then. I'll shut up now. :) A. --=20 The idea that Bill Gates has appeared like a knight in shining armour to lead all customers out of a mire of technological chaos neatly ignores the fact that it was he who, by peddling second-rate technology, led them into it in the first place. - Douglas Adams (1952-2001) --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9WbgkttcWHAnWiGcRAjslAKCfXi5IIxjC3ak1FbloqFUJZeaTiwCgjX6k aqK4d84fWU1WlQi0Ahl1bxM= =nEJU -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message