MIME-Version: 1.0 References: <20221214164824.172-1-lstipakov@...277...> In-Reply-To: <20221214164824.172-1-lstipakov@...277...> From: Selva Nair Date: Wed, 14 Dec 2022 13:55:03 -0500 Message-ID: Content-Type: multipart/alternative; boundary="0000000000001da31c05efce479c" Subject: Re: [Openvpn-devel] [PATCH] Introduce dco_get_peer_stats API and Windows implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lev Stipakov Cc: openvpn-devel@lists.sourceforge.net, Lev Stipakov --0000000000001da31c05efce479c Content-Type: text/plain; charset="UTF-8" Hi, On Wed, Dec 14, 2022 at 11:49 AM Lev Stipakov wrote: > From: Lev Stipakov > > dco_get_peer_stats fetches stats for a single peer. This is mostly > useful in client mode. So far only Windows implements that. > Good to see this happening.. Do you have a link to a build including this patch for a quick test? Does this data from the driver include both control and data channel bytes? Right now what the GUI receives as bytecount is not zero, I suppose the daemon is reporting the control channel traffic. By the way: + msg(M_WARN | M_ERRNO, "DeviceIoControl(OVPN_IOCTL_SET_PEER) failed"); That would be OVPN_IOCTL_GET_STATS Selva --0000000000001da31c05efce479c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Wed, Dec 14, 2022 at 11:49 AM Lev Stipakov <= lstipakov@...1663...= .> wrote:
From: Lev Stipakov <= lev@...515...>

dco_get_peer_stats fetches stats for a single peer. This is mostly
useful in client mode. So far only Windows implements that.

Good to see this happening.. Do you have a link to a b= uild including this patch for a quick test?

Does t= his data from the driver include both control and data channel=C2=A0 bytes?= Right now what the GUI receives as bytecount=C2=A0 is not zero, I suppose = the daemon is reporting the control channel traffic.

By the way:

+=C2=A0 =C2=A0 =C2=A0 =C2=A0 msg(M_WARN = | M_ERRNO, "DeviceIoControl(OVPN_IOCTL_SET_PEER) failed");

That would be OVPN_IOCTL_GET_STATS

Selva --0000000000001da31c05efce479c--