[132412] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: non operational question related to IP

daemon@ATHENA.MIT.EDU (Steven Bellovin)
Mon Nov 22 15:02:22 2010

From: Steven Bellovin <smb@cs.columbia.edu>
In-Reply-To: <0A3857A2-B215-4592-A288-A534D460CEE7@oicr.on.ca>
Date: Mon, 22 Nov 2010 14:58:34 -0500
To: Greg Whynott <Greg.Whynott@oicr.on.ca>
Cc: nanog list <nanog@nanog.org>
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org


On Nov 22, 2010, at 2:52 52PM, Greg Whynott wrote:

>=20
> i was pinging a host from a windows machine and made a typo which =
seemed harmless.  the end result was it interpreted my input differently =
than what I had intended.   thinking this was a m$ issue I quickly took =
the opportunity to poke fun at windows as the senior m$ admin was near =
by.
>=20
> "look at how brain dead this os is,  it can't even do simple math!"
>=20
> He is now looking at my screen scratching his head=85..
>=20
> "watch,  i'll open a shell on os x and show you how it can add 0 +10"
>=20
> I open a shell on os x,  same behavior as windows.
>=20
> " ok so apple is brain dead too,  watch,  it'll work on linux!"
>=20
> same deal=85
>=20
>=20
> long story short,  it does work as expected on all our hardware =
routing gear.    still not sure what is happening here=85
>=20
>=20
> osx-gwhynott:~ gwhynott$ ping 10.010.10.1
> PING 10.010.10.1 (10.8.10.1): 56 data bytes
>=20
>=20
> gwhynott@ops:~$ ping 10.010.10.1
> PING 10.010.10.1 (10.8.10.1) 56(84) bytes of data.
>=20
>=20
> CORE1>ping 10.010.10.1
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
> !!!!!
>=20
>=20
> anyone happen to know how the OS's are interpreting the 010?   doesn't =
appear work out in base[2-10] (1010,101,22,20,14,13,12,11,10,A)
>=20


010 is how C represents an octal number.  This one is known in decimal =
as 8. =20


$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.=20
ibase=3D8
10
8


		--Steve Bellovin, http://www.cs.columbia.edu/~smb







home help back first fref pref prev next nref lref last post