ports/net/ns/patches/patch-mdart_mdart_function_h

13 lines
362 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: mdart/mdart_function.h
--- mdart/mdart_function.h.orig
+++ mdart/mdart_function.h
@@ -227,7 +227,7 @@ inline int DiffBit(nsaddr_t n1, nsaddr_t n2) {
return i;
}
-inline nsaddr_t hash(nsaddr_t id) {
+inline nsaddr_t myhash(nsaddr_t id) {
bitset<ADDR_SIZE> tempAddress_ (id);
bitset<ADDR_SIZE> address_;
for(unsigned int i=0; i<ADDR_SIZE; i++) {