Wireshark-dev: Re: [Wireshark-dev] addr_resolv IPv6 hash algoritm

From: Evan Huus <eapache@xxxxxxxxx>
Date: Tue, 13 Aug 2013 07:07:09 -0400
You could stick a null-terminator on the end and use glib's string hash. Or use the one-at-a-time hash from http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx#existing

Just xoring does not provide a good distribution.

Evan

On 2013-08-13, at 6:43 AM, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:

Hi,

Does anyone have a good idea for a GHashFunc for IPv6? Just And or xor the high and low 64 bits?

Regards

Anders

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe