Date: Tue, 19 Dec 2000 12:31:39 +1100 (EST) From: Andy Farkas <andyf@speednet.com.au> To: phk@FreeBSD.ORG Cc: kewarken@qnx.com, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/23327: address like 10.51 (meaning 10.0.0.51) does not work in hosts file Message-ID: <Pine.BSF.4.21.0012191220020.7528-100000@backup.af.speednet.com.au> In-Reply-To: <200012182112.eBILCLB42759@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> As far as I recall this is by design. A dig in the mail-archives > will probably show the discussion, I seem to recall some traditionalist > opposition (probably fielded by Garrett) against the change but the > consensus nontheless being that in FreeBSD at least IP numbers > are #.#.#.# all the time. Behaviour is dependent on the application; ping(8) uses inet_pton(3) which return an error if the string has <4 octets. eg: $ tail -2 /etc/hosts 10.61 test 10.0.0.62 test1 $ telnet test Trying 10.0.0.61... ^C $ telnet test1 Trying 10.0.0.62... ^C $ ping test ping: cannot resolve test: Unknown host $ ping test1 PING test1 (10.0.0.62): 56 data bytes ... Perhaps inet_pton(3) should be taught how to translate all valid[1] internet addresses. [1] man 3 inet_addr -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012191220020.7528-100000>