[AccessD] masking question

Heenan, Lambert Lambert.Heenan at AIG.com
Wed Feb 9 08:48:16 CST 2005


Well that's a 'feature' of ping that I never knew about. It appears that if
the individual octets of an IP address are assumed to be in decimal if they
begin with any digit other than zero, but when they start with a zero ping
is treating them as Octal (BASE 8) numbers. 

010 (base 8) = 8 (base 10), 011 (base 8) = 9 (base 10), and 017 (base 8) =
15 (base 10).

Weird behavior and nothing to do with the 'octets' as such - which are so
named because they consist of 8 bits each.

Lambert

> -----Original Message-----
> From:	accessd-bounces at databaseadvisors.com
> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark
> Sent:	Wednesday, February 09, 2005 8:55 AM
> To:	accessd at databaseadvisors.com
> Subject:	RE: [AccessD] masking question
> 
> I don't want leading zeros though...this gives really odd results. If
> you were to type, "ping 010.011.196.017", you are not going to ping the
> intended address, but rather 8.9.196.15
> 
> I don't understand this myself...I'm trying to investigate what is
> actually happening on the network side of things, but either way, it
> means I can't store this way. Well, I could, but it would be confusing.
> 
> >>> stuart at lexacorp.com.pg 2/8/2005 5:34:57 PM >>>
> On 8 Feb 2005 at 14:46, John Clark wrote:
> 
> >> I would guess that as the numbers are entered, the IP address is
> being
> >> thought of as 4 different pieces of data.  So, if you just used 4
> >> textboxes with sequential tab order and put periods between them,
> would that
> >> work?  
> 
> > Yeah...I've actually been contimplating this myself. It would
> probably
> > make sorting easier as well.
> > 
> So would forcing the leading zeros with "000.000.000.000"
> 
> -- 
> Stuart
> 
> 
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com 
> http://databaseadvisors.com/mailman/listinfo/accessd 
> Website: http://www.databaseadvisors.com
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com



More information about the AccessD mailing list