Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
4ebbbd40
Commit
4ebbbd40
authored
Mar 01, 2000
by
Martin Mareš
Browse files
Changed comments regarding hash function.
parent
14a6c2a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/ipv6.h
View file @
4ebbbd40
/*
* 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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment