]> gitweb.fperrin.net Git - iftop.git/blobdiff - ns_hash.c
Import iftop-1.0pre4
[iftop.git] / ns_hash.c
index 947cbef911c45ce7b79f93f54a5a2399ab242a96..219de952bc9eb0bd6cfca8482812e068da22afaf 100644 (file)
--- a/ns_hash.c
+++ b/ns_hash.c
@@ -29,7 +29,7 @@ static int __inline__ hash_uint32(uint32_t n) {
 
 int ns_hash_hash(void* key) {
     int hash;
-    uint32_t* addr6 = ((struct in6_addr *) key)->s6_addr32;
+    uint32_t* addr6 = (uint32_t*)((struct in6_addr *) key)->s6_addr;
 
     hash = ( hash_uint32(addr6[0])
             + hash_uint32(addr6[1])