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

Mike <> writes:


>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,

from HPUX9 hosts(4) man page:

Network addresses are specified in the conventional Internet dot
notation using the inet_addr() routine from the Internet address
manipulation library (see inet(3N)). Host names can contain any
printable character other than a white space, newline, or comment

from HPUX9 inet(3) man page:

All numbers supplied as parts in dot notation can be decimal, octal,
or hexadecimal, as specified in the C language (i.e., a leading 0x or
0X implies hexadecimal; a leading 0 implies octal; otherwise, the
number is interpreted as decimal).

So it sounds like it's a "feature."

- M

Mark "Monty" Montague | | I don't do Windows(tm)
DON'T PANIC! I'm a trained professional, and far more | *Why* question
qualified to panic in this situation than you are. | authority?

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