Date: Wed, 29 Mar 2006 20:51:38 +0300 From: Volodymyr Kostyrko <arcade@synergetica.dn.ua> To: freebsd-net@freebsd.org Subject: inet_aton behavior Message-ID: <442AC92A.1030507@synergetica.dn.ua>
next in thread | raw e-mail | index | archive | help
Hi all.
Roaming recently through whois database i've stumbled upon the
following ip-address notations:
194.134.086.040
212.223.085.184
212.129.243.040
194.134.086.32
... etc ...
Giving this addresses to inet_aton results in exceptions, or address
misspelling due to:
[man inet_aton]
All numbers supplied as ``parts'' in a `.' notation may be decimal,
octal, 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).
[man inet_aton]
However, RFC1166 names addresses as "dotted decimal" and doesn't
specifies any form of writing 'em with octal or hexadecimal numbers.
Am I wrong somewhere? Does inet_aton breaks RFC? Is there any other
common functions to process those "expanded with zeroes" addresses?
--
[WBR], Arcade.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442AC92A.1030507>
