From: Wouter Wijngaards Date: Mon, 19 Nov 2007 13:35:18 +0000 (+0000) Subject: donotq unit test found a fix. X-Git-Tag: release-0.7.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=313193c6fc9982d60442f13ee43e5e6b96d3b62c;p=thirdparty%2Funbound.git donotq unit test found a fix. git-svn-id: file:///svn/unbound/branches/beta-0.7@768 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 4b57e4982..716c391be 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -6,6 +6,8 @@ * README file updated. * nice libevent not found error. * README talks about gnu make. + - for 0.7.2: + * fixup for donotq matching. 15 November 2007: Wouter - review fixups from Jelte. diff --git a/iterator/iter_donotq.c b/iterator/iter_donotq.c index df0908ebd..77ce7c54d 100644 --- a/iterator/iter_donotq.c +++ b/iterator/iter_donotq.c @@ -112,7 +112,7 @@ donotq_insert(struct iter_donotq* dq, struct sockaddr_storage* addr, static void mask_block(int ip6, struct sockaddr_storage* addr, int net) { - uint8_t mask[8] = {0x0, 0x1, 0x3, 0x7, 0xf, 0x1f, 0x3f, 0x7f}; + uint8_t mask[8] = {0x0, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe}; int i, max; uint8_t* s; if(ip6) {