aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/core/listener_table.c
diff options
context:
space:
mode:
authorEnrico Loparco (eloparco) <eloparco@cisco.com>2021-06-24 17:04:19 +0200
committerEnrico Loparco (eloparco) <eloparco@cisco.com>2021-06-24 17:04:19 +0200
commitaf389692c0a687675c74fd432e3a2309337ad3c9 (patch)
tree466e0cda39ca97f37c7b6e3f4fd849fb6e4822cb /hicn-light/src/hicn/core/listener_table.c
parent4f1b9570602c069746a9d63197df29e8b5195df2 (diff)
[HICN-712] Fix listener table retrievalhicn-light-ng
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com> Change-Id: I8cd7c37a570011c2215255fab5e020291dfd0ef7
Diffstat (limited to 'hicn-light/src/hicn/core/listener_table.c')
-rw-r--r--hicn-light/src/hicn/core/listener_table.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/listener_table.c b/hicn-light/src/hicn/core/listener_table.c
index 7a3987c37..560c23f20 100644
--- a/hicn-light/src/hicn/core/listener_table.c
+++ b/hicn-light/src/hicn/core/listener_table.c
@@ -107,4 +107,14 @@ listener_table_get_by_name(listener_table_t * table, const char * name)
listener_t *_listener_table_get_by_id(listener_table_t *table, off_t id) {
return listener_table_get_by_id(table, id);
+}
+
+void listener_table_print(const listener_table_t *table) {
+ const char *k;
+ unsigned v;
+
+ printf("*** Listener table ***\n");
+ kh_foreach(table->id_by_name, k, v, {
+ printf("%s:\t%u\n", k, v);
+ })
} \ No newline at end of file