|
From: Enrico M. <enr...@te...> - 2008-02-21 10:31:10
|
Oredope, Adetola wrote: > I am using sipdht-tools-0.4.1 and libsipdht-0.7.0. > I have actually just done a clean install using the .deb packages on an > Ubuntu machine but I'm still encountering the same errors. > What are your opinions on this? > Also can please point me to the files responsible for generating the > nodes and creating the hash? The hash function used by sipdht is implemented in the C function "hash_function" in sipdht.c (sipdht-tools), and then set to the peer through the "sipdht_peer_set_hash_cb" function. How it works is quite well documented in the "peer" module documentation, available at http://sipdht.sourceforge.net/api/index.html. I'd suggest to implement a better hash function (the current one just sums the char values and then casts the result in 8 bits) and then replace the current one with it. -- Ciao, Enrico |