From 34a507c9ab159a1e56715246c594b93a93d68469 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 10 Feb 2006 10:01:46 +0000 Subject: Added "bytecount" command to management interface. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@887 e7ae566f-a301-0410-adde-c780ea21d3b5 --- forward.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'forward.c') 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 } } -- cgit v1.2.3