From owner-freebsd-current Mon Jul 2 1:38:46 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 299C737B401 for ; Mon, 2 Jul 2001 01:38:44 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 2 Jul 2001 09:38:43 +0100 (BST) Date: Mon, 2 Jul 2001 09:38:42 +0100 From: David Malone To: cjclark@alum.mit.edu Cc: David Hill , freebsd-current@FreeBSD.ORG Subject: Re: syslogd and -a Message-ID: <20010702093842.A13480@walton.maths.tcd.ie> References: <20010701234125.7a7d3e3a.djhill@novagate.net> <20010701212044.Q296@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010701212044.Q296@blossom.cjclark.org>; from cristjc@earthlink.net on Sun, Jul 01, 2001 at 09:20:44PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message