Date: Sun, 25 Mar 2001 20:32:44 +0200 From: "Leif Neland" <leifn@neland.dk> To: "Valentin Nechayev" <netch@iv.nn.kiev.ua>, <freebsd-current@FreeBSD.ORG> Subject: Re: /etc/exports: 192.168.5 = 192.168.0.5 Message-ID: <007101c0b559$fce8b5c0$6405a8c0@neland.dk> References: <Pine.BSF.4.21.0103250921180.3061-100000@arnold.neland.dk> <3ABDA902.EC907C1F@newsguy.com> <20010325160846.A1018@iv.nn.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Bikeshed time ! :-) ----- Original Message ----- From: "Valentin Nechayev" <netch@iv.nn.kiev.ua> To: <freebsd-current@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007101c0b559$fce8b5c0$6405a8c0>