[lkml]   [1996]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Possible /etc/hosts parsing bug?

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

Due to the leading zero, the values are being interpreted as octal values,
and hence are not the same values.
This is normal for all IP parsing. The inet_addr function can interpret
a large variety of IP formats. In fact you could even include the decimal
value 2886730243 as your IP. :)

- Chris Thornhill

 \ /
  Last update: 2005-03-22 13:37    [W:0.065 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site