Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2000 13:10:03 -0700 (PDT)
From:      Bill Fenner <fenner@research.att.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/18251: inet_aton(204.08.126.0) failure
Message-ID:  <200004272010.NAA04512@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/18251; it has been noted by GNATS.

From: Bill Fenner <fenner@research.att.com>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004272010.NAA04512>