From owner-freebsd-bugs Thu Apr 27 13:10: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 433CF37B80F for ; Thu, 27 Apr 2000 13:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA04512; Thu, 27 Apr 2000 13:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Thu, 27 Apr 2000 13:10:03 -0700 (PDT) Message-Id: <200004272010.NAA04512@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bill Fenner Subject: Re: misc/18251: inet_aton(204.08.126.0) failure Reply-To: Bill Fenner Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/18251; it has been noted by GNATS. From: Bill Fenner To: pavlin@catarina.usc.edu Cc: freebsd-gnats-submit@freebsd.org, pavlin@catarina.usc.edu Subject: Re: misc/18251: inet_aton(204.08.126.0) failure Date: Thu, 27 Apr 2000 13:02:49 -0700 This is documented in the inet_aton() man page: All numbers supplied as ``parts'' in a `.' notation may be decimal, oc- tal, or hexadecimal, as specified in the C language (i.e., a leading 0x or 0X implies hexadecimal; otherwise, a leading 0 implies octal; other- wise, the number is interpreted as decimal). Many people think that inet_aton() only takes dotted decimal, but it actually also accepts hex and octal and addresses with less than 4 dots. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message