Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jul 2001 11:33:23 -0400
From:      David Hill <djhill@novagate.net>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: syslogd and -a
Message-ID:  <20010702113323.5f43e3e5.djhill@novagate.net>
In-Reply-To: <20010702093842.A13480@walton.maths.tcd.ie>
References:  <20010701234125.7a7d3e3a.djhill@novagate.net> <20010701212044.Q296@blossom.cjclark.org> <20010702093842.A13480@walton.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2 Jul 2001 09:38:42 +0100
David Malone <dwmalone@maths.tcd.ie> wrote:

> On Sun, Jul 01, 2001 at 09:20:44PM -0700, Crist J. Clark wrote:
> > Hmmm... Looks like,
> > 
> >   # syslogd -a 192.168.1.0/29
> > 
> > Will work and,
> > 
> >   # syslogd -a 192.168.1.1/29
> > 
> > Won't.
> 
> That's the standard behaviour of a netmask, isn't it? The usual
> way to check if host h is in network/netmask n/m is to check if:
> 
> 	(h & m == n)
> 
> this means that the bits of the network which are not in the mask
> must be zero.
> 
> 	David.
> 

Ok, changing the .1 to .0 worked for me.  The last octect must be the network number.

Thanks
- David

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?20010702113323.5f43e3e5.djhill>