Date: Tue, 03 Jul 2001 04:43:01 +0900 (JST) From: Hajimu UMEMOTO <ume@mahoroba.org> To: kris@obsecurity.org Cc: dwmalone@maths.tcd.ie, cjclark@alum.mit.edu, djhill@novagate.net, freebsd-current@FreeBSD.ORG Subject: Re: syslogd and -a Message-ID: <20010703.044302.78781077.ume@mahoroba.org> In-Reply-To: <20010702122542.C64285@xor.obsecurity.org> References: <20010701212044.Q296@blossom.cjclark.org> <20010702093842.A13480@walton.maths.tcd.ie> <20010702122542.C64285@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Mon, 2 Jul 2001 12:25:42 -0700 >>>>> Kris Kennaway <kris@obsecurity.org> said: kris> This doesn't seem to work with IPv6. Isn't there a libc function kris> which can be used to do this? Yup, there is no api for masking address ether libc nor standard. I'll commit the following patch for IPv6: Index: usr.sbin/syslogd/syslogd.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/syslogd/syslogd.c,v retrieving revision 1.79 diff -u -r1.79 syslogd.c --- usr.sbin/syslogd/syslogd.c 2001/07/02 15:26:47 1.79 +++ usr.sbin/syslogd/syslogd.c 2001/07/02 19:39:32 @@ -2033,7 +2033,7 @@ reject = 0; for (j = 0; j < 16; j += 4) { if ((*(u_int32_t *)&sin6->sin6_addr.s6_addr[i] & *(u_int32_t *)&m6p->sin6_addr.s6_addr[i]) - != *(u_int32_t *)&a6p->sin6_addr.s6_addr[i]) { + != (*(u_int32_t *)&a6p->sin6_addr.s6_addr[i] & *(u_int32_t *)&m6p->sin6_addr.s6_addr[i])) { ++reject; break; } -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ 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?20010703.044302.78781077.ume>