From owner-freebsd-current Sun Mar 25 6:15:28 2001 Delivered-To: freebsd-current@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 8E48E37B71D for ; Sun, 25 Mar 2001 06:15:22 -0800 (PST) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id RFW24256 for freebsd-current@freebsd.org; Sun, 25 Mar 2001 17:15:17 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f2PD8ld02925 for freebsd-current@freebsd.org; Sun, 25 Mar 2001 16:08:47 +0300 (EEST) (envelope-from netch) Date: Sun, 25 Mar 2001 16:08:47 +0300 From: Valentin Nechayev To: freebsd-current@freebsd.org Subject: Re: /etc/exports: 192.168.5 = 192.168.0.5 Message-ID: <20010325160846.A1018@iv.nn.kiev.ua> References: <3ABDA902.EC907C1F@newsguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ABDA902.EC907C1F@newsguy.com>; from dcs@newsguy.com on Sun, Mar 25, 2001 at 05:14:58PM +0900 X-42: On Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > /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