diff options
author | 2007-07-14 10:49:29 +0000 | |
---|---|---|
committer | 2007-07-14 10:49:29 +0000 | |
commit | c098996f0900d50558a6411aacaa690a257728b9 (patch) | |
tree | b349324e326cba107d1f1e5803e897825dec2b97 /net-misc/olsrd/files | |
parent | update nvidia drivers mask (diff) | |
download | historical-c098996f0900d50558a6411aacaa690a257728b9.tar.gz historical-c098996f0900d50558a6411aacaa690a257728b9.tar.bz2 historical-c098996f0900d50558a6411aacaa690a257728b9.zip |
Add patch to fix hashing
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'net-misc/olsrd/files')
-rw-r--r-- | net-misc/olsrd/files/digest-olsrd-0.5.1-r1 (renamed from net-misc/olsrd/files/digest-olsrd-0.5.1) | 0 | ||||
-rw-r--r-- | net-misc/olsrd/files/olsrd-0.5.1-fix-hashing.patch | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/net-misc/olsrd/files/digest-olsrd-0.5.1 b/net-misc/olsrd/files/digest-olsrd-0.5.1-r1 index 76deb451c028..76deb451c028 100644 --- a/net-misc/olsrd/files/digest-olsrd-0.5.1 +++ b/net-misc/olsrd/files/digest-olsrd-0.5.1-r1 diff --git a/net-misc/olsrd/files/olsrd-0.5.1-fix-hashing.patch b/net-misc/olsrd/files/olsrd-0.5.1-fix-hashing.patch new file mode 100644 index 000000000000..40dd61db90fe --- /dev/null +++ b/net-misc/olsrd/files/olsrd-0.5.1-fix-hashing.patch @@ -0,0 +1,12 @@ +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 */ |