aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/core/connection_table.h
diff options
context:
space:
mode:
authorEnrico Loparco (eloparco) <eloparco@cisco.com>2021-03-30 17:44:30 +0200
committerEnrico Loparco (eloparco) <eloparco@cisco.com>2021-03-30 17:44:30 +0200
commitf309c4aab4475f5511d00bc236e1f78a457693ed (patch)
tree9c37b91483c3412801cd632f8edcd22fe2cfeebf /hicn-light/src/hicn/core/connection_table.h
parenta5a6ffb506aa3c2a0c7fe8fd09abf3f737984aa5 (diff)
[HICN-555] Fix loop data structure and khash initializations
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com> Change-Id: I496315ede9b9e9ee2aed79a697e217b8c8b1c211
Diffstat (limited to 'hicn-light/src/hicn/core/connection_table.h')
-rw-r--r--hicn-light/src/hicn/core/connection_table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/core/connection_table.h b/hicn-light/src/hicn/core/connection_table.h
index d32a5fee8..160867176 100644
--- a/hicn-light/src/hicn/core/connection_table.h
+++ b/hicn-light/src/hicn/core/connection_table.h
@@ -43,8 +43,8 @@
#define address_pair_hash_eq(a, b) (address_pair_hash(b) - address_pair_hash(a))
/* Hash table types for indices. */
-KHASH_INIT(ct_pair, const address_pair_t *, unsigned, 0, address_pair_hash, address_pair_hash_eq);
-KHASH_INIT(ct_name, const char *, unsigned, 0, str_hash, str_hash_eq);
+KHASH_INIT(ct_pair, const address_pair_t *, unsigned, 1, address_pair_hash, address_pair_hash_eq);
+KHASH_MAP_INIT_STR(ct_name, unsigned);
typedef struct {
size_t max_size;