From 82c63755abc4346e607ecb199915a6f3bc6c4d5b Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sun, 15 Sep 2013 20:11:25 +0000 Subject: Add the new hash algorithm to the macro we were already using. Create a temporary address structure for the port-numbers so we can use the same macro, reducing duplication further. Add modelines. svn path=/trunk/; revision=52081 --- epan/address.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'epan/address.h') diff --git a/epan/address.h b/epan/address.h index f1848adfe1..a4b4a943f0 100644 --- a/epan/address.h +++ b/epan/address.h @@ -194,6 +194,8 @@ typedef struct _address { ADD_ADDRESS_TO_HASH_index < (addr)->len; \ ADD_ADDRESS_TO_HASH_index++) { \ hash_val += ADD_ADDRESS_TO_HASH_data[ADD_ADDRESS_TO_HASH_index]; \ + hash_val += ( hash_val << 10 ); \ + hash_val ^= ( hash_val >> 6 ); \ } \ } while (0) -- cgit v1.2.3