diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2006-02-10 10:01:46 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2006-02-10 10:01:46 +0000 |
commit | 34a507c9ab159a1e56715246c594b93a93d68469 (patch) | |
tree | 99a2a001fe9a0e87c5e593f75f1b65146dc90c6a /forward.c | |
parent | Added feature to --management-client to confirm connection (diff) | |
download | openvpn-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 } } |