diff -Nur olsrd-0.5.1.orig/src/hashing.c olsrd-0.5.1/src/hashing.c --- olsrd-0.5.1.orig/src/hashing.c 2007-07-03 17:31:40.000000000 +0200 +++ olsrd-0.5.1/src/hashing.c 2007-07-07 21:19:38.000000000 +0200 @@ -54,7 +54,7 @@ olsr_u32_t hash; if(olsr_cnf->ip_version == AF_INET) { /* IPv4 */ - const olsr_u8_t * const v4x = (const char *)&address; + const olsr_u8_t * const v4x = (const olsr_u8_t *)&address->v4; hash = v4x[0] ^ v4x[1] ^ v4x[2] ^ v4x[3]; } else { /* IPv6 */