aboutsummaryrefslogtreecommitdiff
path: root/forward.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-02-10 10:01:46 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-02-10 10:01:46 +0000
commit34a507c9ab159a1e56715246c594b93a93d68469 (patch)
tree99a2a001fe9a0e87c5e593f75f1b65146dc90c6a /forward.c
parentAdded feature to --management-client to confirm connection (diff)
downloadopenvpn-34a507c9ab159a1e56715246c594b93a93d68469.tar.xz
Added "bytecount" command to management interface.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@887 e7ae566f-a301-0410-adde-c780ea21d3b5
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
}
}