Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2001 16:08:47 +0300
From:      Valentin Nechayev <netch@iv.nn.kiev.ua>
To:        freebsd-current@freebsd.org
Subject:   Re: /etc/exports: 192.168.5 = 192.168.0.5
Message-ID:  <20010325160846.A1018@iv.nn.kiev.ua>
In-Reply-To: <3ABDA902.EC907C1F@newsguy.com>; from dcs@newsguy.com on Sun, Mar 25, 2001 at 05:14:58PM %2B0900
References:  <Pine.BSF.4.21.0103250921180.3061-100000@arnold.neland.dk> <3ABDA902.EC907C1F@newsguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > /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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010325160846.A1018>