From owner-freebsd-hackers Thu Oct 3 18:49:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 787CF37B401 for ; Thu, 3 Oct 2002 18:49:28 -0700 (PDT) Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FBA343E65 for ; Thu, 3 Oct 2002 18:49:26 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.4/8.12.3) with ESMTP id g941nJ2l051244; Fri, 4 Oct 2002 11:19:20 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: inet_aton() Bug or feature? From: "Daniel O'Connor" To: Leo Bicknell Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <20021004013814.GA70364@ussenterprise.ufp.org> References: <1136947159.20021003160026@yahoo.com> <20021003195515.GA92263@blossom.cjclark.org> <20021004013814.GA70364@ussenterprise.ufp.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 04 Oct 2002 11:19:16 +0930 Message-Id: <1033696158.61118.13.camel@chowder.gsoft.com.au> Mime-Version: 1.0 X-Spam-Score: -3.5 () IN_REP_TO,SUBJ_ENDS_IN_Q_MARK X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 2002-10-04 at 11:08, Leo Bicknell wrote: > 0xffffff00 was hex, > 0123456701234567 was octal, > 010.010.010.010 was 4 decimal parts > > I was very surprised from the poster that 192.168.0.010 might actually > be 192.168.0.8. I would imagine this behaviour is like it is because that is how atoi and friends work.. All of this stuff was written by C programmers and it shows 8-) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message