On Sat, Aug 23, 2008 at 6:32 PM, Christian Weisgerber
<[EMAIL PROTECTED]> wrote:
> ropers <[EMAIL PROTECTED]> wrote:
...
>> Does anyone know whether these alternative notations
>> (dword/octal/hexadecimal...) are officially *supposed* to work?
>
> It's the input format specified for inet_aton() and friends.
> I'm too lazy to research if this is actually in some standard or
> just tradition going back 25 years to 4.2BSD.

It is part of the SUS/XOpen specification for inet_addr().
   http://www.opengroup.org/onlinepubs/009695399/functions/inet_addr.html

inet_aton() isn't part of SUS, though inet_pton() is.  The standard
notes that inet_pton() does not support the other formats for IPv4
addresses that inet_addr() does, only the official w.x.y.z format is
accepted there.


Philip Guenther

Reply via email to