[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] IP addys
- Subject: Re: [cobalt-users] IP addys
- From: "Rob Evans" <robe@xxxxxxxxxxxxxxxxxxx>
- Date: Tue Mar 14 15:52:41 2000
- Organization: Fujitsu Australia Software Technology
----- Original Message -----
From: "Jeff Lasman" <jblists@xxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, 15 March 2000 09:32
Subject: Re: [cobalt-users] IP addys
> At 12:33 PM 3/14/00 -0500, you wrote:
>
> >Quoting Jeff Lasman <jblists@xxxxxxxxxxxxx>:
> >So I suppose if everyone knows to type in your IP# WITH
> >the leading zero,
> >it\'ll work as long as software implemenations don\'t
> >change.
> >
> >It should\'nt make any difference either way. IP
> >addresses are done as binary numbers, only we see them
> >in decimal form. Since 077 and 77 have the same value,
> >1001101 it should work either way.
>
> That would be nice if it were always true. I used to think it was alwyas
> true. Then I tried it. Unfortunately it's not always true. Did you see
> the actual tests I ran? They fail.
>
> Jeff
>
I believe I've solved the mystery (at least for my PING):
When I use an IP address without leading zeroes, each component is
interpreted as an ordinary decimal number (base 10).
However, when I precede any component with a zero, that component is
interpreted as an octal number (base 8) - even when it contains digits >7.
One can have a mixture of decimal and octal components.
So, PING 111.101.99.11 (all decimal) addresses IP 111.101.99.11
While, PING 0111.0101.099.011 (all octal) addresses IP 73.65.81.9
and, PING 111.101.099.011 (mixed) addresses IP 111.101.81.9
Regards, Rob E.