Change in openvpn[release/2.6]: Print DCO client stats on SIGUSR2
A message that is not in the archive (sent off-list or not yet received): gerrit.1679478483000.I465febdf7ee5fe573e88255844f718efb60f8e8a@...2715...
flichtenheld has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/202?usp=email )
Change subject: Print DCO client stats on SIGUSR2
......................................................................
Print DCO client stats on SIGUSR2
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg26471.html
---
M src/openvpn/sig.c
M src/openvpn/sig.h
2 files changed, 10 insertions(+), 5 deletions(-)
src/openvpn/sig.c +9 -4
@@ -300,18 +300,23 @@* Triggered by SIGUSR2 or F2 on Windows. */ void -print_status (const struct context *c,struct status_output *so) +print_status (struct context *c,struct status_output *so) {struct gc_arena gc =gc_new ();status_reset (so); +if (dco_enabled (&c->options)) + { +dco_get_peer_stats (c); + } +status_printf (so,"OpenVPN STATISTICS" );status_printf (so,"Updated,%s" ,time_string (0 ,0 , false, &gc));status_printf (so,"TUN/TAP read bytes," counter_format, c->c2.tun_read_bytes);status_printf (so,"TUN/TAP write bytes," counter_format, c->c2.tun_write_bytes); -status_printf (so,"TCP/UDP read bytes," counter_format, c->c2.link_read_bytes); -status_printf (so,"TCP/UDP write bytes," counter_format, c->c2.link_write_bytes); +status_printf (so,"TCP/UDP read bytes," counter_format, c->c2.link_read_bytes + c->c2.dco_read_bytes); +status_printf (so,"TCP/UDP write bytes," counter_format, c->c2.link_write_bytes + c->c2.dco_write_bytes);status_printf (so,"Auth read bytes," counter_format, c->c2.link_read_bytes_auth);#ifdef USE_COMP if (c->c2.comp_context)
@@ -402,7 +407,7 @@ }static void -process_sigusr2 (const struct context *c) +process_sigusr2 (struct context *c) {struct status_output *so =status_open (NULL ,0 ,M_INFO ,NULL ,0 );print_status (c, so);
src/openvpn/sig.h +1 -1
@@ -69,7 +69,7 @@void print_signal (const struct signal_info *si,const char *title,int msglevel); -void print_status (const struct context *c,struct status_output *so); +void print_status (struct context *c,struct status_output *so);void remap_signal (struct context *c);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/202?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I465febdf7ee5fe573e88255844f718efb60f8e8a
Gerrit-Change-Number: 202
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: cron2
Gerrit-Reviewer: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: ordex <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged
Quoted 10 lines · flichtenheld (Code Review)
flichtenheld has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/202?usp=email )
Change subject: Print DCO client stats on SIGUSR2
......................................................................Print DCO client stats on SIGUSR2
Change-Id I465febdf7ee5fe573e88255844f718efb60f8e8aSigned-off-by Lev Stipakov <[email protected]...>Acked-by Gert Doering <[email protected]...>
Quoted 8 lines
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg26471.htmlSigned-off-by Gert Doering <[email protected]...>(cherry picked from commit d5238627e4fab93a6c09816c60eb90e237b626c3)---
Msrc/openvpn/sig.c
Msrc/openvpn/sig.h2 files changed, 10 insertions(+), 5 deletions(-)
release/2.6 on Gerrit server was far behind and also had some wrong commits. I force-pushed it to the correct state now. I assume that these mails were hallucinations caused by that.
Regards,
Signature · 1 line
Frank Lichtenheld
stipa has uploaded this change for review. ( http://gerrit.openvpn.net/c/openvpn/+/202?usp=email )
Change subject: Print DCO client stats on SIGUSR2
......................................................................
Print DCO client stats on SIGUSR2
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg26471.html
---
M src/openvpn/sig.c
M src/openvpn/sig.h
2 files changed, 10 insertions(+), 5 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/02/202/2
src/openvpn/sig.c +9 -4
@@ -300,18 +300,23 @@* Triggered by SIGUSR2 or F2 on Windows. */ void -print_status (const struct context *c,struct status_output *so) +print_status (struct context *c,struct status_output *so) {struct gc_arena gc =gc_new ();status_reset (so); +if (dco_enabled (&c->options)) + { +dco_get_peer_stats (c); + } +status_printf (so,"OpenVPN STATISTICS" );status_printf (so,"Updated,%s" ,time_string (0 ,0 , false, &gc));status_printf (so,"TUN/TAP read bytes," counter_format, c->c2.tun_read_bytes);status_printf (so,"TUN/TAP write bytes," counter_format, c->c2.tun_write_bytes); -status_printf (so,"TCP/UDP read bytes," counter_format, c->c2.link_read_bytes); -status_printf (so,"TCP/UDP write bytes," counter_format, c->c2.link_write_bytes); +status_printf (so,"TCP/UDP read bytes," counter_format, c->c2.link_read_bytes + c->c2.dco_read_bytes); +status_printf (so,"TCP/UDP write bytes," counter_format, c->c2.link_write_bytes + c->c2.dco_write_bytes);status_printf (so,"Auth read bytes," counter_format, c->c2.link_read_bytes_auth);#ifdef USE_COMP if (c->c2.comp_context)
@@ -402,7 +407,7 @@ }static void -process_sigusr2 (const struct context *c) +process_sigusr2 (struct context *c) {struct status_output *so =status_open (NULL ,0 ,M_INFO ,NULL ,0 );print_status (c, so);
src/openvpn/sig.h +1 -1
@@ -69,7 +69,7 @@void print_signal (const struct signal_info *si,const char *title,int msglevel); -void print_status (const struct context *c,struct status_output *so); +void print_status (struct context *c,struct status_output *so);void remap_signal (struct context *c);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/202?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I465febdf7ee5fe573e88255844f718efb60f8e8a
Gerrit-Change-Number: 202
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: cron2
Gerrit-Reviewer: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: ordex <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newchange