Date: Mon, 2 Jul 2001 12:25:42 -0700 From: Kris Kennaway <kris@obsecurity.org> To: David Malone <dwmalone@maths.tcd.ie> Cc: cjclark@alum.mit.edu, David Hill <djhill@novagate.net>, freebsd-current@FreeBSD.ORG Subject: Re: syslogd and -a Message-ID: <20010702122542.C64285@xor.obsecurity.org> In-Reply-To: <20010702093842.A13480@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Mon, Jul 02, 2001 at 09:38:42AM %2B0100 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
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010702122542.C64285>