From owner-freebsd-current Sun Mar 25 9:32:52 2001 Delivered-To: freebsd-current@freebsd.org Received: from ns.internet.dk (ns.internet.dk [194.19.140.1]) by hub.freebsd.org (Postfix) with ESMTP id E569837B71A for ; Sun, 25 Mar 2001 09:32:48 -0800 (PST) (envelope-from leifn@neland.dk) Received: (from uucp@localhost) by ns.internet.dk (8.11.2/8.11.2) id f2PHWlW92326 for freebsd-current@FreeBSD.ORG.AVP; Sun, 25 Mar 2001 19:32:47 +0200 (CEST) (envelope-from leifn@neland.dk) Received: (from uucp@localhost) by ns.internet.dk (8.11.2/8.11.2) with UUCP id f2PHWkC92312; Sun, 25 Mar 2001 19:32:46 +0200 (CEST) (envelope-from leifn@neland.dk) Received: from gina (dhcp0.neland.dk [192.168.5.100]) by arnold.neland.dk (8.11.3/8.11.0) with SMTP id f2PHWSc05353; Sun, 25 Mar 2001 19:32:29 +0200 (CEST) (envelope-from leifn@neland.dk) Message-ID: <007101c0b559$fce8b5c0$6405a8c0@neland.dk> Reply-To: "Leif Neland" From: "Leif Neland" To: "Valentin Nechayev" , References: <3ABDA902.EC907C1F@newsguy.com> <20010325160846.A1018@iv.nn.kiev.ua> Subject: Re: /etc/exports: 192.168.5 = 192.168.0.5 Date: Sun, 25 Mar 2001 20:32:44 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by ns.internet.dk id f2PHWkC92312 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bikeshed time ! :-) ----- Original Message ----- From: "Valentin Nechayev" To: Sent: Sunday, March 25, 2001 3:08 PM Subject: Re: /etc/exports: 192.168.5 = 192.168.0.5 > > > /var -alldirs -maproot=root: -network 192.168.5 -mask 255.255.255.0 > > > showmount -e showed 192.168.5 was being interpreted as 192.168.0.5 > > This is the correct interpretation. > > > Changing -network to 192.168.5.0 fixed it, naturally, but the 192.168.5 > > > used to work. > > It was broken, then. :-) > > 192.168.5 should be interpreted as 192.168.0.5 in host address context, > but as 192.168.5.0 in network address context. (Such network address > context is well seen in sentences such as "10/8", "192.168/16".) > > netch@iv:~/tmp>netstat -rn | grep 192 > 192/8 127.0.0.1 UGSc 0 0 lo0 > > In case in question, when -network prefix is occured, parsing should > be performed with network address context, not host address context. > > > /netch > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message