Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] hash table acceleration breaks lazyaw

2006-03-28 by Matthias Scheler

On Tue, Mar 28, 2006 at 11:49:24PM +0300, Ranko Zivojnovic wrote:
> True - the mistake was in the typecast, but I still want to use 32 bit
> values in the hash calculus in order to allow for the large hash table.
> Linux and others do provide for s6_addr32, but Solaris 8 unfortunately
> does not (for user space at least) - thus the cast. If you have better
> or more portable solution, please do let me know.

Run a standard byte string hash function over the full IPv6 address.
Your assumption that the last 32bit of an IPv6 address provide a good
hash key is not true in a lot of cases anyway (e.g. for statically
assigned IPv6 addresses).

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.