aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/multi.c
diff options
context:
space:
mode:
authorArne Schwabe2022-08-13 23:11:04 +0200
committerGert Doering2022-08-17 21:19:58 +0200
commitb421a0d55afc6e7a566b97cf9b687824be5a9118 (patch)
tree68a072e59e5550dff4b1da56aa3160e8d10c3d15 /src/openvpn/multi.c
parentda758e6d7f4298d835ceadd60e60309acc032ee7 (diff)
downloadopenvpn-b421a0d55afc6e7a566b97cf9b687824be5a9118.zip
openvpn-b421a0d55afc6e7a566b97cf9b687824be5a9118.tar.gz
Include DCO status in GLOBAL_STATS status v2 output
This is allows querying the DCO status from management interface or by sending SIGUSR2 without doing an error-prone parsing of the startup log. Also remove comment that serves no purpose anymore. Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Lev Stipakov <lstipakov@gmail.com> Message-Id: <20220813211104.411554-1-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24923.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/multi.c')
-rw-r--r--src/openvpn/multi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c
index 53ee3e1..9541442 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -837,7 +837,7 @@ multi_print_status(struct multi_context *m, struct status_output *so, const int
status_reset(so);
- if (version == 1) /* WAS: m->status_file_version */
+ if (version == 1)
{
/*
* Status file version 1
@@ -984,6 +984,7 @@ multi_print_status(struct multi_context *m, struct status_output *so, const int
sep, sep, mbuf_maximum_queued(m->mbuf));
}
+ status_printf(so, "GLOBAL_STATS%cdco_enabled%c%d", sep, sep, dco_enabled(&m->top.options));
status_printf(so, "END");
}
else