summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/fa.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-02-23 12:42:17 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-02-23 12:53:56 +0100
commitfe9d3fcb26b6ff30f4f02f14dddcde186b2955c1 (patch)
tree9d4d03468ed8993eb02d1407081dd9b3bcd872d3 /src/ipcpd/normal/fa.c
parent89388506dd7d88adfc9188547341d7f36bcce397 (diff)
downloadouroboros-fe9d3fcb26b6ff30f4f02f14dddcde186b2955c1.tar.gz
ouroboros-fe9d3fcb26b6ff30f4f02f14dddcde186b2955c1.zip
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 <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/ipcpd/normal/fa.c')
-rw-r--r--src/ipcpd/normal/fa.c5
1 files changed, 3 insertions, 2 deletions
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 <ouroboros/logs.h>
#include <ouroboros/fqueue.h>
@@ -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;
}