summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast/fa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/unicast/fa.c')
-rw-r--r--src/ipcpd/unicast/fa.c7
1 files 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);