Re: IP address spec ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 17, 2001 at 11:17:29AM +0200, Robert Vojta wrote:
>   Yes, I know this, because if you have number with leading zero it's octal
> number and linux works fine in this way, but there are some programs which
> are using 010.000.000.001 as decimal numbers, so it's 10.0.0.1 ==
> 010.000.000.001.
>   Now, I don't know what is true. In my previous e-mail there is an example
> from rfc with leading zeroes and when I try dotted format with leading zeroes
> linux use this numbers as octal one.

The functions linux uses for that (inet_aton etc.) are taken from BSD and are
also shared by other unixes and probably other stacks also from the same 
ancestor. So "true" is defined as what this code does.

-Andi 
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux