More on the data channel traffic stats getting reset on reconnect:
>> Here is MSI installer which incorporates required client patches >> >> - management: add timer to output BYTECOUNT >> - Introduce dco_get_peer_stats API and Windows implementation >> >> and a new driver version (0.8.3) with stats fixes. >> >> https://github.com/lstipakov/openvpn-build/actions/runs/3699097077 > > > Thanks. > > Tested again using this. Ignore my previous comment about Out bytes not > reported. Something must be wrong with my build --- this one shows in and > out bytes correctly. But the problem with data getting reset on > reconnect is real. > In non-dco use, the stats as persisted by the management interface are not reset throughout the lifetime of the process. With dco, what the driver provides is "Peer Stats" which is reset in OvpnPeerNew() (linux appears to do the same). A quick option would be to move the zero-ing to OvpnEvtFileCleanup() which, I guess, would work at least when persist-tun is in use. Or in a new callback that gets called on tun-open. But then it wont be strictly "Peer Stats". Otherwise we need a way to add the current data channel stats to the accumulated control-channel stats just before SIGUSR1 and SIGHUP. Or learn to live with the new paradigm. Selva >
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel