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 Hajimu UMEMOTO

Hi,

>>>>> On Mon, 27 Mar 2006 07:21:56 +0300
>>>>> Ranko Zivojnovic <ranko@...> said:

ranko> ! #define BUCKET_HASH_V6(sa, from, rcpt, bucket_count)			\
ranko> !   (((((uint32_t)(SADDR6(sa)->s6_addr)[0] &				\
ranko> !       (uint32_t)(((ipaddr *)&conf.c_match_mask6)->in6.s6_addr)[0]) ^	\
ranko> !      ((uint32_t)(SADDR6(sa)->s6_addr)[1] &				\
ranko> !       (uint32_t)(((ipaddr *)&conf.c_match_mask6)->in6.s6_addr)[1]) ^	\
ranko> !      ((uint32_t)(SADDR6(sa)->s6_addr)[2] &				\
ranko> !       (uint32_t)(((ipaddr *)&conf.c_match_mask6)->in6.s6_addr)[2]) ^	\
ranko> !      ((uint32_t)(SADDR6(sa)->s6_addr)[3] &				\
ranko> !       (uint32_t)(((ipaddr *)&conf.c_match_mask6)->in6.s6_addr)[3]))	\
ranko> !     ^ F2B_SPICE(from, rcpt))						\
ranko> !    % bucket_count)

It seems you are confused.  The s6_addr is uint8_t, and is not casted
to uint32_t.  Further, cast to `ipaddr *' is redundant.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@...  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

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.