From fe9d3fcb26b6ff30f4f02f14dddcde186b2955c1 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 23 Feb 2018 12:42:17 +0100 Subject: ipcpd: Print endpoint in flow statistics The flow statistics will now print the endpoint of the flow. If it's a local endpoint for the IPCP, it will print the component (e.g. "flow-allocator"). For remote flows, it will print the address of the IPCP. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/normal/dht.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ipcpd/normal/dht.c') diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c index ebed4068..2577efc7 100644 --- a/src/ipcpd/normal/dht.c +++ b/src/ipcpd/normal/dht.c @@ -24,7 +24,8 @@ #include "config.h" -#define OUROBOROS_PREFIX "dht" +#define DHT "dht" +#define OUROBOROS_PREFIX DHT #include #include @@ -2767,7 +2768,7 @@ struct dht * dht_create(uint64_t addr) if (tpm_start(dht->tpm)) goto fail_tpm_start; - dht->fd = dt_reg_comp(dht, &dht_post_sdu); + dht->fd = dt_reg_comp(dht, &dht_post_sdu, DHT); notifier_reg(handle_event, dht); #else (void) handle_event; -- cgit v1.2.3