From owner-freebsd-current Mon Jul 2 12:25:48 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-169-104-161.dsl.lsan03.pacbell.net [64.169.104.161]) by hub.freebsd.org (Postfix) with ESMTP id 0E47637B401 for ; Mon, 2 Jul 2001 12:25:44 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id E6E3967B08; Mon, 2 Jul 2001 12:25:42 -0700 (PDT) Date: Mon, 2 Jul 2001 12:25:42 -0700 From: Kris Kennaway To: David Malone Cc: cjclark@alum.mit.edu, David Hill , freebsd-current@FreeBSD.ORG Subject: Re: syslogd and -a Message-ID: <20010702122542.C64285@xor.obsecurity.org> References: <20010701234125.7a7d3e3a.djhill@novagate.net> <20010701212044.Q296@blossom.cjclark.org> <20010702093842.A13480@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="NU0Ex4SbNnrxsi6C" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010702093842.A13480@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Mon, Jul 02, 2001 at 09:38:42AM +0100 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 --NU0Ex4SbNnrxsi6C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 02, 2001 at 09:38:42AM +0100, David Malone wrote: > On Sun, Jul 01, 2001 at 09:20:44PM -0700, Crist J. Clark wrote: > > Hmmm... Looks like, > >=20 > > # syslogd -a 192.168.1.0/29 > >=20 > > Will work and, > >=20 > > # syslogd -a 192.168.1.1/29 > >=20 > > Won't. >=20 > 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: >=20 > (h & m =3D=3D n) >=20 > this means that the bits of the network which are not in the mask > must be zero. This doesn't seem to work with IPv6. Isn't there a libc function which can be used to do this? Kris --NU0Ex4SbNnrxsi6C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7QMq1Wry0BWjoQKURAnO+AJ0dEnAhJYWEW4C1Evm1IVIjem6xWQCgo+7O msbbBVsje8EKETHnqNAouyU= =jlTG -----END PGP SIGNATURE----- --NU0Ex4SbNnrxsi6C-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message