From owner-freebsd-current Sun Mar 25 0:16:17 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 35D0437B719 for ; Sun, 25 Mar 2001 00:16:15 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from mobile.wemm.org (mobile.wemm.org [10.0.0.5]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f2P8GEp12960 for ; Sun, 25 Mar 2001 00:16:15 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by mobile.wemm.org (8.11.1/8.11.1) with ESMTP id f2P8GDh07835; Sun, 25 Mar 2001 00:16:13 -0800 (PST) (envelope-from peter@netplex.com.au) Message-Id: <200103250816.f2P8GDh07835@mobile.wemm.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Leif Neland Cc: freebsd-current@FreeBSD.ORG Subject: Re: /etc/exports: 192.168.5 = 192.168.0.5 In-Reply-To: Date: Sun, 25 Mar 2001 00:16:13 -0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Leif Neland wrote: > Bug or pilot error? > > My network is 192.168.5.0 > > I used to have im my /etc/exports: > > /var -alldirs -maproot=root: -network 192.168.5 -mask 255.255.255.0 > > But after the portmapper change, I couldn't mount, was getting permission > denied. > > showmount -e showed 192.168.5 was being interpreted as 192.168.0.5 > > Changing -network to 192.168.5.0 fixed it, naturally, but the 192.168.5 > used to work. > > Is this change intentional, or is 192.168.5 supposed to work? > > Leif My buest guess is that this is because it is now using something like inet_addr() for decoding the address instead of some roll-your-own code. FWIW, this zero fill is a standard part of the system: peter@daintree[11:24pm]~src/sys/pci-142> ping 192.168.5 PING 192.168.5 (192.168.0.5): 56 data bytes .. peter@daintree[12:13am]~src/sys/pci-143> ping 127.1 PING 127.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.068 ms .. This is far more prolific in IPv6. Eg: "ping ::1" is localhost. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message