Re: Possible /etc/hosts parsing bug?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 18 Nov 1996 19:39:32 +0000 (GMT)


> 172.016.002.001 Atomic.shocking.com
> 172.016.002.002 Nuclear.shocking.com
> 172.016.002.003 Fusion.shocking.com
>
> Numerically, these have the same values, but when I tried to ping fusion,
> the IP that it was using was 172.14.2.3. When the extra '0's were deleted
> ping worked fine. Is this within the operating specs? Just curious,

Yeah. You are allowed to use leading 0 to indicate octal and leading 0x
for hex.

Alan