Patch from Scott Bertilson <ssb@umn.edu> to remove dependence on s6_addr32.

This commit is contained in:
pdw
2011-10-03 20:21:55 +00:00
parent cd57e76727
commit fc511cfea9
4 changed files with 18 additions and 17 deletions

View File

@@ -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])