mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Export TUN device statistics from the worker process.
When a worker process terminates in authenticated state, then export statistics from the tun device (currently bytes_in and bytes_out). These statistics are sent to main process using an informational message just prior to process exit. The statistics are also exported to the disconnect script using the STATS_BYTES_IN and STATS_BYTES_OUT environment variables.
This commit is contained in:
@@ -135,6 +135,12 @@ message tun_mtu_msg
|
||||
required uint32 mtu = 1;
|
||||
}
|
||||
|
||||
message cli_stats_msg
|
||||
{
|
||||
required uint64 bytes_in = 1;
|
||||
required uint64 bytes_out = 2;
|
||||
}
|
||||
|
||||
/* UDP_FD */
|
||||
message udp_fd_msg
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user