From 19a5cd2b494f5cea83f1c6332eab93ec19a9b649 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 16 Jul 2021 18:36:51 +0200 Subject: ipcpd: Fix flow allocator build without fuse The u_snd and u_rcv variables were not guarded by ifdefs when updating. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/fa.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ipcpd/unicast/fa.c b/src/ipcpd/unicast/fa.c index c2059e38..6e6d52f0 100644 --- a/src/ipcpd/unicast/fa.c +++ b/src/ipcpd/unicast/fa.c @@ -586,9 +586,9 @@ static void * fa_handle_packet(void * o) } flow = &fa.flows[fd]; - +#ifdef IPCP_FLOW_STATS flow->u_rcv++; - +#endif ca_ctx_update_ece(flow->ctx, ntoh16(msg->ece)); pthread_rwlock_unlock(&fa.flows_lock); @@ -888,8 +888,9 @@ static int fa_update_remote(int fd, msg->ece = hton16(ece); r_addr = flow->r_addr; +#ifdef IPCP_FLOW_STATS flow->u_snd++; - +#endif pthread_rwlock_unlock(&fa.flows_lock); -- cgit v1.2.3