summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-01 13:15:20 +0100
committerMartin Mares <mj@ucw.cz>2000-03-01 13:15:20 +0100
commit4ebbbd4079cbf6295367b9c7a555c1b668fa0d8c (patch)
treef645cdea89b0bf0dbf10e7f0678ce7fc76661136 /lib
parent14a6c2a705fce9143e721b8da167dcbaa053c936 (diff)
downloadbird-4ebbbd4079cbf6295367b9c7a555c1b668fa0d8c.tar
bird-4ebbbd4079cbf6295367b9c7a555c1b668fa0d8c.zip
Changed comments regarding hash function.
Diffstat (limited to 'lib')
-rw-r--r--lib/ipv6.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ipv6.h b/lib/ipv6.h
index 33f2742..6f157cd 100644
--- a/lib/ipv6.h
+++ b/lib/ipv6.h
@@ -1,7 +1,7 @@
/*
* BIRD -- IP Addresses et Cetera for IPv6
*
- * (c) 1999 Martin Mares <mj@ucw.cz>
+ * (c) 1999--2000 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -64,7 +64,12 @@ void ipv6_ntoh(ip_addr *);
int ipv6_compare(ip_addr, ip_addr);
int ipv4_pton_u32(char *, u32 *);
-/* FIXME: Is this hash function uniformly distributed over standard routing tables? */
+/*
+ * This hash function looks well, but once IPv6 enters
+ * mainstream use, we need to check that it has good
+ * distribution properties on real routing tables.
+ */
+
static inline unsigned ipv6_hash(ip_addr *a)
{
/* Returns a 16-bit hash key */