aboutsummaryrefslogtreecommitdiff
path: root/forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'forward.c')
-rw-r--r--forward.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/forward.c b/forward.c
index 4705f44..be041b9 100644
--- a/forward.c
+++ b/forward.c
@@ -686,6 +686,10 @@ process_incoming_link (struct context *c)
{
c->c2.link_read_bytes += c->c2.buf.len;
c->c2.original_recv_size = c->c2.buf.len;
+#ifdef ENABLE_MANAGEMENT
+ if (management)
+ management_bytes_in (management, c->c2.buf.len);
+#endif
}
else
c->c2.original_recv_size = 0;
@@ -1066,6 +1070,10 @@ process_outgoing_link (struct context *c)
{
c->c2.max_send_size_local = max_int (size, c->c2.max_send_size_local);
c->c2.link_write_bytes += size;
+#ifdef ENABLE_MANAGEMENT
+ if (management)
+ management_bytes_out (management, size);
+#endif
}
}