aboutsummaryrefslogtreecommitdiffstats
path: root/epan/address.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-09-15 20:11:25 +0000
committerEvan Huus <eapache@gmail.com>2013-09-15 20:11:25 +0000
commit82c63755abc4346e607ecb199915a6f3bc6c4d5b (patch)
tree366216d9b6862bdda24fe2857bb1fb5b7f771cce /epan/address.h
parent1359f55d9ff26dca72f8fe255d818b695c1251b3 (diff)
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
Diffstat (limited to 'epan/address.h')
-rw-r--r--epan/address.h2
1 files changed, 2 insertions, 0 deletions
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)