aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/core/pit.h
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/core/pit.h')
-rw-r--r--hicn-light/src/hicn/core/pit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/core/pit.h b/hicn-light/src/hicn/core/pit.h
index 85958f88e..9164aab60 100644
--- a/hicn-light/src/hicn/core/pit.h
+++ b/hicn-light/src/hicn/core/pit.h
@@ -64,9 +64,9 @@ typedef enum {
nexthops_add(pit_entry_get_egress(E), (NH))
#define name_hash(name) (name_HashCode(name))
-#define name_hash_eq(a, b) (name_hash(b) - name_hash(a))
+#define name_hash_eq(a, b) (name_hash(b) == name_hash(a))
-KHASH_INIT(pit_name, const Name *, unsigned, 0, name_hash, name_hash_eq);
+KHASH_INIT(pit_name, const Name *, unsigned, 1, name_hash, name_hash_eq);
typedef struct {
size_t max_size;