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/fa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ipcpd/normal/fa.c') diff --git a/src/ipcpd/normal/fa.c b/src/ipcpd/normal/fa.c index e7e5a786..00e93fb7 100644 --- a/src/ipcpd/normal/fa.c +++ b/src/ipcpd/normal/fa.c @@ -24,7 +24,8 @@ #include "config.h" -#define OUROBOROS_PREFIX "flow-allocator" +#define FA "flow-allocator" +#define OUROBOROS_PREFIX FA #include #include @@ -195,7 +196,7 @@ int fa_init(void) if (pthread_rwlock_init(&fa.flows_lock, NULL)) return -1; - fa.fd = dt_reg_comp(&fa, &fa_post_sdu); + fa.fd = dt_reg_comp(&fa, &fa_post_sdu, FA); return 0; } -- cgit v1.2.3