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 <[email protected]> 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 <[email protected]> > Archives: http://www.wireshark.org/lists/wireshark-dev > Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev > mailto:[email protected]?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <[email protected]> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:[email protected]?subject=unsubscribe
