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>
status_reset(so);
- if (version == 1) /* WAS: m->status_file_version */
+ if (version == 1)
{
/*
* Status file version 1
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