From owner-freebsd-bugs Mon Dec 18 17:31:58 2000 From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 18 17:31:56 2000 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from backup.af.speednet.com.au (af.speednet.com.au [202.135.188.244]) by hub.freebsd.org (Postfix) with ESMTP id 1C46E37B400; Mon, 18 Dec 2000 17:31:50 -0800 (PST) Received: from backup.af.speednet.com.au (backup.af.speednet.com.au [172.22.2.4]) by backup.af.speednet.com.au (8.11.1/8.11.1) with ESMTP id eBJ1VdF08677; Tue, 19 Dec 2000 12:31:40 +1100 (EST) (envelope-from andyf@speednet.com.au) Date: Tue, 19 Dec 2000 12:31:39 +1100 (EST) From: Andy Farkas X-Sender: andyf@backup.af.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 In-Reply-To: <200012182112.eBILCLB42759@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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